UI cleanup and README update
Petr Grabovoy [06-11-16 - 11:24]
UI cleanup and README update
diff --git a/README.md b/README.md
index 8e4bb35..38aced1 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,13 @@ tParent[fnName] = function(...)
end
```
![ViragDevTool logger demo][loggerDemo]
+### How to use function arguments:
+You can specify coma separated arguments that will be passed to the function.
+Can be string, number, nil, true/false and table
+to pass table you have to specify prefix `t=` so lets suppose i want to pass ViragDevToolFrame as a argument, then the string has to be `t=ViragDevToolFrame`
+
+Demo1: FN Call Args: `t=Frame, 12, a12` => someFunction(_G.Frame (table) , 12 (number), a12 (string))
+Demo2: FN Call Args: `t=Frame.Frame2.Frame3` => someFunction(_G.Frame.Frame2.Frame3 (table))
### /CMD
@@ -105,15 +112,14 @@ end
### TODO list:
-ViragDevTool is in beta (probably even early alpha) so there is lots of stuff to add and tune.
+ViragDevTool is in beta so there is lots of stuff to add and tune.
1. Create dynamic text and color size chooser (probably not everyone likes SystemFont_Small)
-2. Create edit text ui so we can call functions with args
-3. Add filters by object name and type
-4. Add object deep copy option
-5. Add predefined buttons for every WoW API (just like _G)
-6. Add row delimiters so we can resize rows in table
-7. Add function args info and description from mapping file
+2. Add filters by object name and type
+3. Add object deep copy option
+4. Add predefined buttons for every WoW API (just like _G)
+5. Add row delimiters so we can resize rows in table
+6. Add function args info and description from mapping file
### How to contribute
For now this addon will be updated only when i need certain feature in my other addon's development
diff --git a/ViragDevTool.xml b/ViragDevTool.xml
index a180c83..17de777 100644
--- a/ViragDevTool.xml
+++ b/ViragDevTool.xml
@@ -141,6 +141,7 @@
self:SetUserPlaced(true)
ViragDevTool:OnLoad(self)
self:SetMinResize(600, 100);
+ self:SetMaxResize(1200, 900);
self:RegisterForDrag("LeftButton");
</OnLoad>
<OnDragStart>
@@ -380,7 +381,7 @@
</OnClick>
</Scripts>
<Anchors>
- <Anchor point="LEFT"/>
+ <Anchor point="LEFT" x = "5"/>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-Panel-SmallerButton-Up"/>
<PushedTexture file="Interface\Buttons\UI-Panel-SmallerButton-Down"/>
@@ -394,7 +395,7 @@
</Scripts>
<Anchors>
- <Anchor point="LEFT" relativeTo="$parentToggleSideBarButton" relativePoint="RIGHT"/>
+ <Anchor point="LEFT" relativeTo="$parentToggleSideBarButton" relativePoint="RIGHT" x = "5"/>
</Anchors>
</Button>
<Button text="_G" name="$parentAddGlobalButton" inherits="ViragDevToolTopButton">
@@ -404,7 +405,7 @@
</OnClick>
</Scripts>
<Anchors>
- <Anchor point="LEFT" relativeTo="$parentClearButton" relativePoint="RIGHT"/>
+ <Anchor point="LEFT" relativeTo="$parentClearButton" relativePoint="RIGHT" x = "5"/>
</Anchors>
</Button>
<Button text="/fstack" name="$parentFrameStack" inherits="ViragDevToolTopButton">
@@ -418,7 +419,7 @@
</OnClick>
</Scripts>
<Anchors>
- <Anchor point="LEFT" relativeTo="$parentAddGlobalButton" relativePoint="RIGHT"/>
+ <Anchor point="LEFT" relativeTo="$parentAddGlobalButton" relativePoint="RIGHT" x = "5"/>
</Anchors>
</Button>
<Button text="help" name="$parentHelpButton" inherits="ViragDevToolTopButton">
@@ -428,11 +429,11 @@
</OnClick>
</Scripts>
<Anchors>
- <Anchor point="LEFT" relativeTo="$parentFrameStack" relativePoint="RIGHT"/>
+ <Anchor point="LEFT" relativeTo="$parentFrameStack" relativePoint="RIGHT" x = "5"/>
</Anchors>
</Button>
- <Button text="FN Call Args:" name="$parentFNCallLabelButton" parentKey="clearFnArgsButton">
- <Size x="75" y="25"/>
+ <Button text="FN Call Args:" name="$parentFNCallLabelButton" parentKey="clearFnArgsButton" >
+ <Size x="80" y="25"/>
<NormalFont style="GameFontHighlightLeft"/>
<Scripts>
<OnClick>
@@ -442,13 +443,13 @@
</OnClick>
</Scripts>
<Anchors>
- <Anchor point="BOTTOM" relativeTo="$parentClearButton" relativePoint="TOP" y ="2"/>
+ <Anchor point="BOTTOM" relativeTo="$parentToggleSideBarButton" relativePoint="TOP" y ="2"/>
</Anchors>
</Button>
<EditBox name="$parentTextArea" autoFocus="false" parentKey="editbox">
<Size>
- <AbsDimension x="400" y="32"/>
+ <AbsDimension x="500" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentFNCallLabelButton" relativePoint="RIGHT" x="10"/>