big progress on new UI
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
.idea/
|
||||||
Generated
-3
@@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="EntryPointsManager">
|
|
||||||
<entry_points version="2.0" />
|
|
||||||
</component>
|
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" />
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" />
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
|
|||||||
Generated
+203
-256
@@ -1,10 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3c1af1d3-ae57-470d-8daa-a9295703c6fc" name="Default" comment="">
|
<list default="true" id="231796f5-1261-4550-a370-a9bf34182237" name="Default" comment="">
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.lua" afterPath="$PROJECT_DIR$/buy.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.xml" afterPath="$PROJECT_DIR$/buy.xml" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/buy.xml" afterPath="$PROJECT_DIR$/buy.xml" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.lua" afterPath="$PROJECT_DIR$/core.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.xml" afterPath="$PROJECT_DIR$/core.xml" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/core.xml" afterPath="$PROJECT_DIR$/core.xml" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/info.lua" afterPath="$PROJECT_DIR$/info.lua" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/info.lua" afterPath="$PROJECT_DIR$/info.lua" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/list.lua" afterPath="$PROJECT_DIR$/list.lua" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/options.xml" afterPath="$PROJECT_DIR$/options.xml" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/sell.lua" afterPath="$PROJECT_DIR$/sell.lua" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/sell.xml" afterPath="$PROJECT_DIR$/sell.xml" />
|
||||||
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/util.lua" afterPath="$PROJECT_DIR$/util.lua" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||||
</list>
|
</list>
|
||||||
<ignored path="Aux-Addon.iws" />
|
<ignored path="Aux-Addon.iws" />
|
||||||
@@ -59,8 +67,8 @@
|
|||||||
<option name="LOG_MESSAGE" value="" />
|
<option name="LOG_MESSAGE" value="" />
|
||||||
</breakpoint>
|
</breakpoint>
|
||||||
</breakpoint_any>
|
</breakpoint_any>
|
||||||
<ui_properties converted="true" />
|
|
||||||
<breakpoint_rules converted="true" />
|
<breakpoint_rules converted="true" />
|
||||||
|
<ui_properties converted="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
||||||
<component name="FavoritesManager">
|
<component name="FavoritesManager">
|
||||||
@@ -68,41 +76,11 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf>
|
<leaf>
|
||||||
<file leaf-file-name="core.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="sell.lua" pinned="false" current="true" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
<entry file="file://$PROJECT_DIR$/sell.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1940" max-vertical-offset="8942">
|
<state vertical-scroll-proportion="0.8290503" vertical-offset="12399" max-vertical-offset="13294">
|
||||||
<caret line="205" column="25" selection-start-line="205" selection-start-column="25" selection-end-line="205" selection-end-column="25" />
|
<caret line="773" column="29" selection-start-line="773" selection-start-column="29" selection-end-line="773" selection-end-column="29" />
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="info.lua" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/info.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2153" max-vertical-offset="3145">
|
|
||||||
<caret line="163" column="53" selection-start-line="163" selection-start-column="53" selection-end-line="163" selection-end-column="53" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="scan.lua" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/scan.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2043" max-vertical-offset="2737">
|
|
||||||
<caret line="138" column="14" selection-start-line="138" selection-start-column="14" selection-end-line="138" selection-end-column="14" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="buy.lua" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/buy.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="9265" max-vertical-offset="15181">
|
|
||||||
<caret line="568" column="63" selection-start-line="568" selection-start-column="63" selection-end-line="568" selection-end-column="63" />
|
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -111,8 +89,8 @@
|
|||||||
<file leaf-file-name="util.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="util.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/util.lua">
|
<entry file="file://$PROJECT_DIR$/util.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1224" max-vertical-offset="4420">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4658">
|
||||||
<caret line="92" column="24" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="24" />
|
<caret line="13" column="44" selection-start-line="13" selection-start-column="44" selection-end-line="13" selection-end-column="44" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -121,28 +99,18 @@
|
|||||||
<file leaf-file-name="list.lua" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="list.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/list.lua">
|
<entry file="file://$PROJECT_DIR$/list.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2512" max-vertical-offset="4624">
|
<state vertical-scroll-proportion="0.0" vertical-offset="3784" max-vertical-offset="4692">
|
||||||
<caret line="165" column="19" selection-start-line="165" selection-start-column="14" selection-end-line="165" selection-end-column="19" />
|
<caret line="253" column="14" selection-start-line="253" selection-start-column="14" selection-end-line="253" selection-end-column="14" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="buy.xml" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="sell.xml" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/buy.xml">
|
<entry file="file://$PROJECT_DIR$/sell.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="602" max-vertical-offset="12988">
|
<state vertical-scroll-proportion="0.0" vertical-offset="4647" max-vertical-offset="5542">
|
||||||
<caret line="44" column="36" selection-start-line="44" selection-start-column="36" selection-end-line="44" selection-end-column="38" />
|
<caret line="317" column="0" selection-start-line="317" selection-start-column="0" selection-end-line="317" selection-end-column="0" />
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="info.xml" pinned="false" current="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/info.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="187">
|
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -151,18 +119,58 @@
|
|||||||
<file leaf-file-name="options.xml" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="options.xml" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/options.xml">
|
<entry file="file://$PROJECT_DIR$/options.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="359" max-vertical-offset="6579">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="6647">
|
||||||
<caret line="40" column="49" selection-start-line="40" selection-start-column="49" selection-end-line="40" selection-end-column="49" />
|
<caret line="25" column="27" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="core.xml" pinned="false" current="true" current-in-tab="true">
|
<file leaf-file-name="buy.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/buy.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="7028" max-vertical-offset="15249">
|
||||||
|
<caret line="434" column="19" selection-start-line="434" selection-start-column="19" selection-end-line="434" selection-end-column="19" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="core.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/core.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="3929" max-vertical-offset="9163">
|
||||||
|
<caret line="275" column="7" selection-start-line="275" selection-start-column="7" selection-end-line="275" selection-end-column="7" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="info.lua" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/info.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="-42.964287" vertical-offset="1483" max-vertical-offset="3332">
|
||||||
|
<caret line="158" column="10" selection-start-line="158" selection-start-column="10" selection-end-line="158" selection-end-column="10" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="buy.xml" pinned="false" current="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/buy.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8925">
|
||||||
|
<caret line="44" column="0" selection-start-line="44" selection-start-column="0" selection-end-line="44" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="core.xml" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/core.xml">
|
<entry file="file://$PROJECT_DIR$/core.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.7497244" vertical-offset="204" max-vertical-offset="1734">
|
<state vertical-scroll-proportion="0.0" vertical-offset="4855" max-vertical-offset="5882">
|
||||||
<caret line="52" column="41" selection-start-line="52" selection-start-column="41" selection-end-line="52" selection-end-column="41" />
|
<caret line="298" column="11" selection-start-line="298" selection-start-column="11" selection-end-line="298" selection-end-column="11" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -181,17 +189,16 @@
|
|||||||
<component name="IdeDocumentHistory">
|
<component name="IdeDocumentHistory">
|
||||||
<option name="changedFiles">
|
<option name="changedFiles">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/stack.lua" />
|
<option value="$PROJECT_DIR$/info.lua" />
|
||||||
<option value="$PROJECT_DIR$/sell.xml" />
|
|
||||||
<option value="$PROJECT_DIR$/util.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/sell.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/scan.lua" />
|
|
||||||
<option value="$PROJECT_DIR$/list.lua" />
|
<option value="$PROJECT_DIR$/list.lua" />
|
||||||
|
<option value="$PROJECT_DIR$/util.lua" />
|
||||||
<option value="$PROJECT_DIR$/buy.lua" />
|
<option value="$PROJECT_DIR$/buy.lua" />
|
||||||
<option value="$PROJECT_DIR$/core.lua" />
|
<option value="$PROJECT_DIR$/core.lua" />
|
||||||
<option value="$PROJECT_DIR$/info.lua" />
|
<option value="$PROJECT_DIR$/options.xml" />
|
||||||
<option value="$PROJECT_DIR$/buy.xml" />
|
<option value="$PROJECT_DIR$/buy.xml" />
|
||||||
<option value="$PROJECT_DIR$/core.xml" />
|
<option value="$PROJECT_DIR$/core.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/sell.xml" />
|
||||||
|
<option value="$PROJECT_DIR$/sell.lua" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
@@ -227,7 +234,7 @@
|
|||||||
<sortByType />
|
<sortByType />
|
||||||
</navigator>
|
</navigator>
|
||||||
<panes>
|
<panes>
|
||||||
<pane id="Scope" />
|
<pane id="PackagesPane" />
|
||||||
<pane id="ProjectPane">
|
<pane id="ProjectPane">
|
||||||
<subPane>
|
<subPane>
|
||||||
<PATH>
|
<PATH>
|
||||||
@@ -248,7 +255,7 @@
|
|||||||
</PATH>
|
</PATH>
|
||||||
</subPane>
|
</subPane>
|
||||||
</pane>
|
</pane>
|
||||||
<pane id="PackagesPane" />
|
<pane id="Scope" />
|
||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
@@ -258,12 +265,6 @@
|
|||||||
<property name="MemberChooser.sorted" value="false" />
|
<property name="MemberChooser.sorted" value="false" />
|
||||||
<property name="MemberChooser.showClasses" value="true" />
|
<property name="MemberChooser.showClasses" value="true" />
|
||||||
<property name="MemberChooser.copyJavadoc" value="false" />
|
<property name="MemberChooser.copyJavadoc" value="false" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
||||||
<property name="FullScreen" value="false" />
|
|
||||||
<property name="options.lastSelected" value="editor.preferences.appearance" />
|
|
||||||
<property name="options.splitter.main.proportions" value="0.3" />
|
|
||||||
<property name="options.splitter.details.proportions" value="0.2" />
|
|
||||||
<property name="options.searchVisible" value="true" />
|
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager">
|
<component name="RunManager">
|
||||||
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
|
<configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
|
||||||
@@ -272,6 +273,27 @@
|
|||||||
<option name="PROGRAM_PARAMETERS" />
|
<option name="PROGRAM_PARAMETERS" />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
|
||||||
|
<module name="" />
|
||||||
|
<option name="TESTING_TYPE" value="0" />
|
||||||
|
<option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
|
||||||
|
<option name="METHOD_NAME" value="" />
|
||||||
|
<option name="CLASS_NAME" value="" />
|
||||||
|
<option name="PACKAGE_NAME" value="" />
|
||||||
|
<option name="TARGET_SELECTION_MODE" value="EMULATOR" />
|
||||||
|
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
|
||||||
|
<option name="PREFERRED_AVD" value="" />
|
||||||
|
<option name="USE_COMMAND_LINE" value="true" />
|
||||||
|
<option name="COMMAND_LINE" value="" />
|
||||||
|
<option name="WIPE_USER_DATA" value="false" />
|
||||||
|
<option name="DISABLE_BOOT_ANIMATION" value="false" />
|
||||||
|
<option name="NETWORK_SPEED" value="full" />
|
||||||
|
<option name="NETWORK_LATENCY" value="none" />
|
||||||
|
<option name="CLEAR_LOGCAT" value="false" />
|
||||||
|
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
|
||||||
|
<option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
<configuration default="true" type="Remote" factoryName="Remote">
|
<configuration default="true" type="Remote" factoryName="Remote">
|
||||||
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
||||||
<option name="SERVER_MODE" value="false" />
|
<option name="SERVER_MODE" value="false" />
|
||||||
@@ -280,6 +302,19 @@
|
|||||||
<option name="PORT" value="5005" />
|
<option name="PORT" value="5005" />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<configuration default="true" type="Applet" factoryName="Applet">
|
||||||
|
<module name="" />
|
||||||
|
<option name="MAIN_CLASS_NAME" />
|
||||||
|
<option name="HTML_FILE_NAME" />
|
||||||
|
<option name="HTML_USED" value="false" />
|
||||||
|
<option name="WIDTH" value="400" />
|
||||||
|
<option name="HEIGHT" value="300" />
|
||||||
|
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
||||||
|
<option name="VM_PARAMETERS" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
<configuration default="true" type="TestNG" factoryName="TestNG">
|
<configuration default="true" type="TestNG" factoryName="TestNG">
|
||||||
<module name="" />
|
<module name="" />
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
||||||
@@ -307,19 +342,6 @@
|
|||||||
<listeners />
|
<listeners />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="Applet" factoryName="Applet">
|
|
||||||
<module name="" />
|
|
||||||
<option name="MAIN_CLASS_NAME" />
|
|
||||||
<option name="HTML_FILE_NAME" />
|
|
||||||
<option name="HTML_USED" value="false" />
|
|
||||||
<option name="WIDTH" value="400" />
|
|
||||||
<option name="HEIGHT" value="300" />
|
|
||||||
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
<method />
|
|
||||||
</configuration>
|
|
||||||
<configuration default="true" type="Application" factoryName="Application">
|
<configuration default="true" type="Application" factoryName="Application">
|
||||||
<option name="MAIN_CLASS_NAME" />
|
<option name="MAIN_CLASS_NAME" />
|
||||||
<option name="VM_PARAMETERS" />
|
<option name="VM_PARAMETERS" />
|
||||||
@@ -354,6 +376,38 @@
|
|||||||
<patterns />
|
<patterns />
|
||||||
<method />
|
<method />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<configuration default="true" type="#com.sylvanaar.idea.Lua.run.LuaConfigurationType" factoryName="Lua Script">
|
||||||
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
|
<option name="INTERPRETER_PATH" value="" />
|
||||||
|
<option name="WORKING_DIRECTORY" value="" />
|
||||||
|
<option name="PARENT_ENVS" value="true" />
|
||||||
|
<option name="ALTERNATE_INTERPRETER" value="false" />
|
||||||
|
<envs />
|
||||||
|
<module name="Aux-Addon" />
|
||||||
|
<option name="SCRIPT_NAME" value="" />
|
||||||
|
<option name="PARAMETERS" value="" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
|
<configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
|
||||||
|
<module name="" />
|
||||||
|
<option name="ACTIVITY_CLASS" value="" />
|
||||||
|
<option name="MODE" value="default_activity" />
|
||||||
|
<option name="DEPLOY" value="true" />
|
||||||
|
<option name="ARTIFACT_NAME" value="" />
|
||||||
|
<option name="TARGET_SELECTION_MODE" value="EMULATOR" />
|
||||||
|
<option name="USE_LAST_SELECTED_DEVICE" value="false" />
|
||||||
|
<option name="PREFERRED_AVD" value="" />
|
||||||
|
<option name="USE_COMMAND_LINE" value="true" />
|
||||||
|
<option name="COMMAND_LINE" value="" />
|
||||||
|
<option name="WIPE_USER_DATA" value="false" />
|
||||||
|
<option name="DISABLE_BOOT_ANIMATION" value="false" />
|
||||||
|
<option name="NETWORK_SPEED" value="full" />
|
||||||
|
<option name="NETWORK_LATENCY" value="none" />
|
||||||
|
<option name="CLEAR_LOGCAT" value="false" />
|
||||||
|
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
|
||||||
|
<option name="FILTER_LOGCAT_AUTOMATICALLY" value="true" />
|
||||||
|
<method />
|
||||||
|
</configuration>
|
||||||
<list size="0" />
|
<list size="0" />
|
||||||
<configuration name="<template>" type="WebApp" default="true" selected="false">
|
<configuration name="<template>" type="WebApp" default="true" selected="false">
|
||||||
<Host>localhost</Host>
|
<Host>localhost</Host>
|
||||||
@@ -361,14 +415,11 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
<component name="ShelveChangesManager" show_recycled="false" />
|
<component name="ShelveChangesManager" show_recycled="false" />
|
||||||
<component name="SvnConfiguration">
|
|
||||||
<configuration />
|
|
||||||
</component>
|
|
||||||
<component name="TaskManager">
|
<component name="TaskManager">
|
||||||
<task active="true" id="Default" summary="Default task">
|
<task active="true" id="Default" summary="Default task">
|
||||||
<changelist id="3c1af1d3-ae57-470d-8daa-a9295703c6fc" name="Default" comment="" />
|
<changelist id="231796f5-1261-4550-a370-a9bf34182237" name="Default" comment="" />
|
||||||
<created>1445044678361</created>
|
<created>1445635607102</created>
|
||||||
<updated>1445044678361</updated>
|
<updated>1445635607102</updated>
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
@@ -376,29 +427,29 @@
|
|||||||
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
|
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
<window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
||||||
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" />
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5005348" order="1" side_tool="true" content_ui="tabs" />
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.49946523" order="0" side_tool="false" content_ui="combo" />
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="LuaJ" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="LuaJ" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32905984" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="combo" />
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
||||||
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39957264" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
||||||
</layout>
|
</layout>
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.UiProperties">
|
<component name="Vcs.Log.UiProperties">
|
||||||
@@ -421,202 +472,98 @@
|
|||||||
<breakpoint-manager />
|
<breakpoint-manager />
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
<entry file="file://$PROJECT_DIR$/.gitignore">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8942">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="883">
|
||||||
<caret line="106" column="24" selection-start-line="106" selection-start-column="24" selection-end-line="106" selection-end-column="24" />
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/info.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2278" max-vertical-offset="3060">
|
|
||||||
<caret line="134" column="49" selection-start-line="134" selection-start-column="49" selection-end-line="134" selection-end-column="49" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/scan.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2043" max-vertical-offset="2737">
|
|
||||||
<caret line="138" column="14" selection-start-line="138" selection-start-column="14" selection-end-line="138" selection-end-column="14" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/buy.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="9265" max-vertical-offset="15181">
|
|
||||||
<caret line="568" column="63" selection-start-line="568" selection-start-column="63" selection-end-line="568" selection-end-column="63" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/util.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1224" max-vertical-offset="4420">
|
|
||||||
<caret line="92" column="24" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="24" />
|
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/list.lua">
|
<entry file="file://$PROJECT_DIR$/list.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2512" max-vertical-offset="4624">
|
<state vertical-scroll-proportion="0.0" vertical-offset="3784" max-vertical-offset="4692">
|
||||||
<caret line="165" column="19" selection-start-line="165" selection-start-column="14" selection-end-line="165" selection-end-column="19" />
|
<caret line="253" column="14" selection-start-line="253" selection-start-column="14" selection-end-line="253" selection-end-column="14" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/buy.xml">
|
<entry file="file://$PROJECT_DIR$/util.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2295" max-vertical-offset="13532">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4658">
|
||||||
<caret line="173" column="57" selection-start-line="173" selection-start-column="57" selection-end-line="173" selection-end-column="57" />
|
<caret line="13" column="44" selection-start-line="13" selection-start-column="44" selection-end-line="13" selection-end-column="44" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/options.xml">
|
<entry file="file://$PROJECT_DIR$/Aux-Addon.toc">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="680" max-vertical-offset="6579">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="908">
|
||||||
<caret line="40" column="41" selection-start-line="40" selection-start-column="41" selection-end-line="40" selection-end-column="41" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/options.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2040">
|
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/core.xml">
|
<entry file="file://$PROJECT_DIR$/info.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="622" max-vertical-offset="1530">
|
<state vertical-scroll-proportion="-42.964287" vertical-offset="1483" max-vertical-offset="3332">
|
||||||
<caret line="58" column="20" selection-start-line="58" selection-start-column="20" selection-end-line="58" selection-end-column="20" />
|
<caret line="158" column="10" selection-start-line="158" selection-start-column="10" selection-end-line="158" selection-end-column="10" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/buy.lua">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="7028" max-vertical-offset="15249">
|
||||||
|
<caret line="434" column="19" selection-start-line="434" selection-start-column="19" selection-end-line="434" selection-end-column="19" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
<entry file="file://$PROJECT_DIR$/core.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8075">
|
<state vertical-scroll-proportion="0.0" vertical-offset="3929" max-vertical-offset="9163">
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
<caret line="275" column="7" selection-start-line="275" selection-start-column="7" selection-end-line="275" selection-end-column="7" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/stack.lua">
|
<entry file="file://$PROJECT_DIR$/options.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="-11.678572" vertical-offset="2155" max-vertical-offset="3485">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="6647">
|
||||||
<caret line="146" column="20" selection-start-line="146" selection-start-column="20" selection-end-line="146" selection-end-column="20" />
|
<caret line="25" column="27" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/sell.lua">
|
<entry file="file://$PROJECT_DIR$/buy.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="-3.0" vertical-offset="3520" max-vertical-offset="10353">
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="8925">
|
||||||
<caret line="212" column="12" selection-start-line="212" selection-start-column="12" selection-end-line="212" selection-end-column="12" />
|
<caret line="44" column="0" selection-start-line="44" selection-start-column="0" selection-end-line="44" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/core.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state vertical-scroll-proportion="0.0" vertical-offset="4855" max-vertical-offset="5882">
|
||||||
|
<caret line="298" column="11" selection-start-line="298" selection-start-column="11" selection-end-line="298" selection-end-column="11" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/sell.xml">
|
<entry file="file://$PROJECT_DIR$/sell.xml">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="7670" max-vertical-offset="9588">
|
<state vertical-scroll-proportion="0.0" vertical-offset="4647" max-vertical-offset="5542">
|
||||||
<caret line="469" column="55" selection-start-line="469" selection-start-column="55" selection-end-line="469" selection-end-column="55" />
|
<caret line="317" column="0" selection-start-line="317" selection-start-column="0" selection-end-line="317" selection-end-column="0" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/options.lua">
|
<entry file="file://$PROJECT_DIR$/sell.lua">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2040">
|
<state vertical-scroll-proportion="0.8290503" vertical-offset="12399" max-vertical-offset="13294">
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
<caret line="773" column="29" selection-start-line="773" selection-start-column="29" selection-end-line="773" selection-end-column="29" />
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/scan.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2043" max-vertical-offset="2737">
|
|
||||||
<caret line="138" column="14" selection-start-line="138" selection-start-column="14" selection-end-line="138" selection-end-column="14" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/util.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1224" max-vertical-offset="4420">
|
|
||||||
<caret line="92" column="24" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="24" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/buy.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="9265" max-vertical-offset="15181">
|
|
||||||
<caret line="568" column="63" selection-start-line="568" selection-start-column="63" selection-end-line="568" selection-end-column="63" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/list.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2512" max-vertical-offset="4624">
|
|
||||||
<caret line="165" column="19" selection-start-line="165" selection-start-column="14" selection-end-line="165" selection-end-column="19" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/info.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="907">
|
|
||||||
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/info.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="2153" max-vertical-offset="3145">
|
|
||||||
<caret line="163" column="53" selection-start-line="163" selection-start-column="53" selection-end-line="163" selection-end-column="53" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/options.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="359" max-vertical-offset="6579">
|
|
||||||
<caret line="40" column="49" selection-start-line="40" selection-start-column="49" selection-end-line="40" selection-end-column="49" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/core.lua">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="1940" max-vertical-offset="8942">
|
|
||||||
<caret line="205" column="25" selection-start-line="205" selection-start-column="25" selection-end-line="205" selection-end-column="25" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/buy.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.0" vertical-offset="602" max-vertical-offset="12988">
|
|
||||||
<caret line="44" column="36" selection-start-line="44" selection-start-column="36" selection-end-line="44" selection-end-column="38" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/core.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state vertical-scroll-proportion="0.7497244" vertical-offset="204" max-vertical-offset="1734">
|
|
||||||
<caret line="52" column="41" selection-start-line="52" selection-start-column="41" selection-end-line="52" selection-end-column="41" />
|
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|
|||||||
@@ -432,6 +432,8 @@ function Aux.buy.exit()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Aux.buy.on_open()
|
function Aux.buy.on_open()
|
||||||
|
AuxBuySearchButton:Show()
|
||||||
|
AuxBuyStopButton:Hide()
|
||||||
update_sheet()
|
update_sheet()
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -825,18 +827,20 @@ end
|
|||||||
|
|
||||||
function AuxBuyQualityDropDown_Initialize()
|
function AuxBuyQualityDropDown_Initialize()
|
||||||
|
|
||||||
|
local function on_click()
|
||||||
|
UIDropDownMenu_SetSelectedValue(AuxBuyQualityDropDown, this.value)
|
||||||
|
end
|
||||||
|
|
||||||
UIDropDownMenu_AddButton{
|
UIDropDownMenu_AddButton{
|
||||||
text = ALL,
|
text = ALL,
|
||||||
value = -1,
|
value = -1,
|
||||||
func = AuxBuyQualityDropDown_OnClick,
|
func = on_click,
|
||||||
}
|
}
|
||||||
for i=0,getn(ITEM_QUALITY_COLORS)-2 do
|
for i=0,getn(ITEM_QUALITY_COLORS)-2 do
|
||||||
UIDropDownMenu_AddButton{
|
UIDropDownMenu_AddButton{
|
||||||
text = getglobal("ITEM_QUALITY"..i.."_DESC"),
|
text = getglobal("ITEM_QUALITY"..i.."_DESC"),
|
||||||
value = i,
|
value = i,
|
||||||
func = function()
|
func = on_click,
|
||||||
UIDropDownMenu_SetSelectedValue(AuxBuyQualityDropDown, this.value)
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -40,247 +40,8 @@
|
|||||||
</HighlightTexture>
|
</HighlightTexture>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button name="AuxTabTemplate" hidden="false" virtual="true">
|
<Frame name="AuxBuyFrame" hidden="true" parent="AuxFrame" setAllPoints="true">
|
||||||
<Size>
|
|
||||||
<AbsDimension x="64" y="32"/>
|
|
||||||
</Size>
|
|
||||||
<Layers>
|
|
||||||
<Layer level="BACKGROUND">
|
|
||||||
<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="16" y="32"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT"/>
|
|
||||||
</Anchors>
|
|
||||||
<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
|
|
||||||
</Texture>
|
|
||||||
<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="16" y="32"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="RIGHT"/>
|
|
||||||
</Anchors>
|
|
||||||
<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
|
|
||||||
</Texture>
|
|
||||||
<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="44" y="32"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
||||||
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
|
|
||||||
</Texture>
|
|
||||||
</Layer>
|
|
||||||
</Layers>
|
|
||||||
<Scripts>
|
|
||||||
<OnShow>
|
|
||||||
this:SetWidth(getglobal(this:GetName()..'Text'):GetStringWidth()+40)
|
|
||||||
</OnShow>
|
|
||||||
<OnClick>
|
|
||||||
Aux.on_tab_click(arg1)
|
|
||||||
</OnClick>
|
|
||||||
</Scripts>
|
|
||||||
<NormalText name="$parentText" inherits="GameFontNormalSmall">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="50" y="8"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="CENTER">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="-5"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
</NormalText>
|
|
||||||
<HighlightTexture name="$parentHighlight" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="5" y="32"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="$parentLeft">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="-7"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
<Anchor point="RIGHT" relativeTo="$parentRight">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="-7"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
</HighlightTexture>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Frame name="AuxBuyPanel" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="850" y="450"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="CENTER"/>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
|
||||||
this:RegisterForDrag('LeftButton')
|
|
||||||
</OnLoad>
|
|
||||||
<OnDragStart>
|
|
||||||
this:StartMoving()
|
|
||||||
</OnDragStart>
|
|
||||||
<OnDragStop>
|
|
||||||
this:StopMovingOrSizing()
|
|
||||||
</OnDragStop>
|
|
||||||
</Scripts>
|
|
||||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
|
||||||
<BackgroundInsets>
|
|
||||||
<AbsInset left="4" right="4" top="4" bottom="4"/>
|
|
||||||
</BackgroundInsets>
|
|
||||||
<TileSize>
|
|
||||||
<AbsValue val="32"/>
|
|
||||||
</TileSize>
|
|
||||||
<EdgeSize>
|
|
||||||
<AbsValue val="16"/>
|
|
||||||
</EdgeSize>
|
|
||||||
</Backdrop>
|
|
||||||
<Frames>
|
<Frames>
|
||||||
<Button name="AuctionFrameCloseButton" inherits="UIPanelCloseButton">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPRIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
</Button>
|
|
||||||
<Frame name="AuxLogFrame" inherits="OptionFrameBoxTemplate">
|
|
||||||
<Size><AbsDimension x="400" y="71"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="5" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
<Anchor point="BOTTOM">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="10"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
|
||||||
this:SetBackdropColor(0.15, 0.15, 0.15)
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
<Frames>
|
|
||||||
<ScrollingMessageFrame name="$parentMessageFrame" maxLines="500">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="8" y="-5"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
<Anchor point="BOTTOMRIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="-8" y="9"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
Aux.log_frame_load()
|
|
||||||
</OnLoad>
|
|
||||||
<OnUpdate>
|
|
||||||
Aux.log_frame_update(arg1)
|
|
||||||
</OnUpdate>
|
|
||||||
<OnHyperlinkClick>
|
|
||||||
ChatFrame_OnHyperlinkShow(arg1)
|
|
||||||
</OnHyperlinkClick>
|
|
||||||
<OnMouseWheel>
|
|
||||||
if arg1 == 1 then
|
|
||||||
this:ScrollUp()
|
|
||||||
elseif arg1 == -1 then
|
|
||||||
this:ScrollDown()
|
|
||||||
end
|
|
||||||
</OnMouseWheel>
|
|
||||||
</Scripts>
|
|
||||||
<FontString inherits="ChatFontNormal" justifyH="LEFT"/>
|
|
||||||
</ScrollingMessageFrame>
|
|
||||||
</Frames>
|
|
||||||
</Frame>
|
|
||||||
<Button name="AuxTab1" inherits="AuxTabTemplate" id="1">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="7" y="-2"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
getglobal(this:GetName().."Text"):SetText('Search')
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxTab2" inherits="AuxTabTemplate" id="2">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="AuxTab1" relativePoint="RIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
getglobal(this:GetName().."Text"):SetText('Post')
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxTab3" inherits="AuxTabTemplate" id="3">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="AuxTab2" relativePoint="RIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
getglobal(this:GetName().."Text"):SetText('Auctions')
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxTab4" inherits="AuxTabTemplate" id="4">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="AuxTab3" relativePoint="RIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
getglobal(this:GetName().."Text"):SetText('Bids')
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxTab5" inherits="AuxTabTemplate" id="5">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="LEFT" relativeTo="AuxTab4" relativePoint="RIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="0" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
getglobal(this:GetName().."Text"):SetText('Scan')
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Frame name="AuxBuyFilters" inherits="AuxFrameBoxTemplate">
|
<Frame name="AuxBuyFilters" inherits="AuxFrameBoxTemplate">
|
||||||
<Size><AbsDimension x="180" y="326"/></Size>
|
<Size><AbsDimension x="180" y="326"/></Size>
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-35"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-35"/></Offset></Anchor></Anchors>
|
||||||
@@ -579,7 +340,7 @@
|
|||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
local sort_order = Aux.util.map(Aux.buy.modes[1].sort_order, function(column_order) return { column = Aux.buy.modes[1].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
local sort_order = Aux.util.map(Aux.buy.modes[1].sort_order, function(column_order) return { column = Aux.buy.modes[1].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
||||||
this.sheet = Aux.sheet.create(this, Aux.buy.modes[1].columns, sort_order, Aux.buy.modes[1].on_cell_click, Aux.buy.modes[1].on_cell_enter, Aux.buy.modes[1].on_cell_leave)
|
this.sheet = Aux.sheet.create(this, Aux.buy.modes[1].columns, sort_order, Aux.buy.modes[1].row_setter, Aux.buy.modes[1].on_cell_click, Aux.buy.modes[1].on_cell_enter, Aux.buy.modes[1].on_cell_leave)
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
@@ -591,7 +352,7 @@
|
|||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
local sort_order = Aux.util.map(Aux.buy.modes[2].sort_order, function(column_order) return { column = Aux.buy.modes[2].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
local sort_order = Aux.util.map(Aux.buy.modes[2].sort_order, function(column_order) return { column = Aux.buy.modes[2].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
||||||
this.sheet = Aux.sheet.create(this, Aux.buy.modes[2].columns, sort_order, Aux.buy.modes[2].on_cell_click, Aux.buy.modes[2].on_cell_enter, Aux.buy.modes[2].on_cell_leave)
|
this.sheet = Aux.sheet.create(this, Aux.buy.modes[2].columns, sort_order, Aux.buy.modes[2].row_setter, Aux.buy.modes[2].on_cell_click, Aux.buy.modes[2].on_cell_enter, Aux.buy.modes[2].on_cell_leave)
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
@@ -603,7 +364,7 @@
|
|||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
local sort_order = Aux.util.map(Aux.buy.modes[3].sort_order, function(column_order) return { column = Aux.buy.modes[3].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
local sort_order = Aux.util.map(Aux.buy.modes[3].sort_order, function(column_order) return { column = Aux.buy.modes[3].columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
||||||
this.sheet = Aux.sheet.create(this, Aux.buy.modes[3].columns, sort_order, Aux.buy.modes[3].on_cell_click, Aux.buy.modes[3].on_cell_enter, Aux.buy.modes[3].on_cell_leave)
|
this.sheet = Aux.sheet.create(this, Aux.buy.modes[3].columns, sort_order, Aux.buy.modes[3].row_setter, Aux.buy.modes[3].on_cell_click, Aux.buy.modes[3].on_cell_enter, Aux.buy.modes[3].on_cell_leave)
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
@@ -617,7 +378,7 @@
|
|||||||
<Frames>
|
<Frames>
|
||||||
<Frame name="$parentItem">
|
<Frame name="$parentItem">
|
||||||
<Size><AbsDimension x="193" y="37"/></Size>
|
<Size><AbsDimension x="193" y="37"/></Size>
|
||||||
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-105"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-100"/></Offset></Anchor></Anchors>
|
||||||
<Layers>
|
<Layers>
|
||||||
<Layer level="BORDER">
|
<Layer level="BORDER">
|
||||||
<Texture name="$parentIconTexture">
|
<Texture name="$parentIconTexture">
|
||||||
@@ -673,7 +434,7 @@
|
|||||||
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
|
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Frame name="$parentBid" inherits="MoneyInputFrameTemplate">
|
<Frame name="$parentBid" inherits="MoneyInputFrameTemplate">
|
||||||
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="143"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="148"/></Offset></Anchor></Anchors>
|
||||||
<Layers>
|
<Layers>
|
||||||
<Layer level="OVERLAY">
|
<Layer level="OVERLAY">
|
||||||
<FontString inherits="GameFontNormal" text="Price:" justifyH="RIGHT">
|
<FontString inherits="GameFontNormal" text="Price:" justifyH="RIGHT">
|
||||||
@@ -683,7 +444,7 @@
|
|||||||
</Layers>
|
</Layers>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Frame name="$parentBuyoutPrice" inherits="SmallMoneyFrameTemplate">
|
<Frame name="$parentBuyoutPrice" inherits="SmallMoneyFrameTemplate">
|
||||||
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="145"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="BOTTOM"><Offset><AbsDimension x="30" y="150"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
SmallMoneyFrame_OnLoad()
|
SmallMoneyFrame_OnLoad()
|
||||||
@@ -700,7 +461,7 @@
|
|||||||
</Frame>
|
</Frame>
|
||||||
<Button name="$parentActionButton" inherits="UIPanelButtonTemplate" text="Buy" disabled="true">
|
<Button name="$parentActionButton" inherits="UIPanelButtonTemplate" text="Buy" disabled="true">
|
||||||
<Size><AbsDimension x="90" y="26"/> </Size>
|
<Size><AbsDimension x="90" y="26"/> </Size>
|
||||||
<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="230" y="105"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="BOTTOMLEFT"><Offset><AbsDimension x="230" y="110"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
Aux.buy.dialog_action()
|
Aux.buy.dialog_action()
|
||||||
@@ -709,7 +470,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
|
<Button name="$parentCancelButton" inherits="UIPanelButtonTemplate" text="Cancel">
|
||||||
<Size><AbsDimension x="90" y="26"/></Size>
|
<Size><AbsDimension x="90" y="26"/></Size>
|
||||||
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-230" y="105"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-230" y="110"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
Aux.buy.dialog_cancel()
|
Aux.buy.dialog_cancel()
|
||||||
|
|||||||
@@ -89,6 +89,16 @@ function Aux_OnAddonLoaded()
|
|||||||
Aux.buy.elements = {
|
Aux.buy.elements = {
|
||||||
AuxBuyFilters,
|
AuxBuyFilters,
|
||||||
AuxBuySheetFrame,
|
AuxBuySheetFrame,
|
||||||
|
AuxBuySearchButton,
|
||||||
|
AuxBuyStopButton,
|
||||||
|
}
|
||||||
|
|
||||||
|
Aux.sell.elements = {
|
||||||
|
AuxSellInventory,
|
||||||
|
AuxSellParameters,
|
||||||
|
AuxSellAuctions,
|
||||||
|
AuxSellPostButton,
|
||||||
|
AuxSellRefreshButton,
|
||||||
}
|
}
|
||||||
|
|
||||||
Aux.tabs.sell.recommendationElements = {
|
Aux.tabs.sell.recommendationElements = {
|
||||||
@@ -222,6 +232,7 @@ function Aux_OnAuctionHouseShow()
|
|||||||
|
|
||||||
AuxOptionsButtonPanel:Show()
|
AuxOptionsButtonPanel:Show()
|
||||||
|
|
||||||
|
Aux.on_tab_click(1)
|
||||||
if AUX_OPEN_SELL then
|
if AUX_OPEN_SELL then
|
||||||
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
|
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
|
||||||
elseif AUX_OPEN_BUY then
|
elseif AUX_OPEN_BUY then
|
||||||
@@ -242,21 +253,26 @@ function Aux_OnAuctionHouseClosed()
|
|||||||
AuxOptionsButtonPanel:Hide()
|
AuxOptionsButtonPanel:Hide()
|
||||||
AuxOptionsFrame:Hide()
|
AuxOptionsFrame:Hide()
|
||||||
AuxAboutFrame:Hide()
|
AuxAboutFrame:Hide()
|
||||||
AuxSellPanel:Hide()
|
-- AuxSellPanel:Hide()
|
||||||
AuxBuyPanel:Hide()
|
AuxFrame:Hide()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Aux.on_tab_click(button)
|
function Aux.on_tab_click(index)
|
||||||
|
|
||||||
for i=1,4 do
|
for i=1,5 do
|
||||||
getglobal('AuxTab'..i):SetAlpha(i == this:GetID() and 1 or 0.5)
|
getglobal('AuxTab'..i):SetAlpha(i == index and 1 or 0.5)
|
||||||
end
|
end
|
||||||
|
|
||||||
Aux_HideElems(Aux.buy.elements)
|
AuxSellFrame:Hide()
|
||||||
AuxSellPanel:Hide()
|
AuxBuyFrame:Hide()
|
||||||
if this:GetID() == 1 then
|
|
||||||
Aux_ShowElems(Aux.buy.elements)
|
if index == 1 then
|
||||||
|
AuxBuyFrame:Show()
|
||||||
|
Aux.buy.on_open()
|
||||||
|
elseif index == 2 then
|
||||||
|
AuxSellFrame:Show()
|
||||||
|
Aux.sell.on_open()
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -272,8 +288,8 @@ function Aux_AuctionFrameTab_OnClick(index)
|
|||||||
Aux.buy.exit()
|
Aux.buy.exit()
|
||||||
Aux.scan.abort()
|
Aux.scan.abort()
|
||||||
|
|
||||||
AuxSellPanel:Hide()
|
-- AuxSellPanel:Hide()
|
||||||
AuxBuyPanel:Hide()
|
AuxFrame:Hide()
|
||||||
|
|
||||||
if index == 2 then
|
if index == 2 then
|
||||||
Aux_ShowElems(Aux.tabs.buy.hiddenElements)
|
Aux_ShowElems(Aux.tabs.buy.hiddenElements)
|
||||||
@@ -285,13 +301,12 @@ function Aux_AuctionFrameTab_OnClick(index)
|
|||||||
|
|
||||||
if index == Aux.tabs.sell.index then
|
if index == Aux.tabs.sell.index then
|
||||||
AuctionFrameTab_OnClick(3)
|
AuctionFrameTab_OnClick(3)
|
||||||
Aux.sell.on_open()
|
|
||||||
|
|
||||||
PanelTemplates_SetTab(AuctionFrame, Aux.tabs.sell.index)
|
PanelTemplates_SetTab(AuctionFrame, Aux.tabs.sell.index)
|
||||||
|
|
||||||
Aux_HideElems(Aux.tabs.sell.hiddenElements)
|
Aux_HideElems(Aux.tabs.sell.hiddenElements)
|
||||||
|
|
||||||
AuxSellPanel:Show()
|
-- AuxSellPanel:Show()
|
||||||
AuctionFrame:EnableMouse(false)
|
AuctionFrame:EnableMouse(false)
|
||||||
|
|
||||||
elseif index == Aux.tabs.buy.index then
|
elseif index == Aux.tabs.buy.index then
|
||||||
@@ -301,10 +316,8 @@ function Aux_AuctionFrameTab_OnClick(index)
|
|||||||
|
|
||||||
Aux_HideElems(Aux.tabs.buy.hiddenElements)
|
Aux_HideElems(Aux.tabs.buy.hiddenElements)
|
||||||
|
|
||||||
AuxBuyPanel:Show()
|
AuxFrame:Show()
|
||||||
AuctionFrame:EnableMouse(false)
|
AuctionFrame:EnableMouse(false)
|
||||||
|
|
||||||
Aux.buy.on_open()
|
|
||||||
else
|
else
|
||||||
Aux.orig.AuctionFrameTab_OnClick(index)
|
Aux.orig.AuctionFrameTab_OnClick(index)
|
||||||
lastItemPosted = nil
|
lastItemPosted = nil
|
||||||
@@ -313,11 +326,11 @@ end
|
|||||||
|
|
||||||
function Aux_AddPanels()
|
function Aux_AddPanels()
|
||||||
|
|
||||||
local sellFrame = CreateFrame("Frame", "AuxSellPanel", AuctionFrame, "AuxSellTemplate")
|
-- local sellFrame = CreateFrame("Frame", "AuxSellPanel", AuctionFrame, "AuxSellTemplate")
|
||||||
sellFrame:SetParent("AuctionFrame")
|
-- sellFrame:SetParent("AuctionFrame")
|
||||||
sellFrame:SetPoint("TOPLEFT", "AuctionFrame", "TOPLEFT")
|
-- sellFrame:SetPoint("TOPLEFT", "AuctionFrame", "TOPLEFT")
|
||||||
relevel(sellFrame)
|
-- relevel(sellFrame)
|
||||||
sellFrame:Hide()
|
-- sellFrame:Hide()
|
||||||
|
|
||||||
--local buyFrame = CreateFrame("Frame", "AuxBuyPanel", AuctionFrame, "AuxBuyTemplate")
|
--local buyFrame = CreateFrame("Frame", "AuxBuyPanel", AuctionFrame, "AuxBuyTemplate")
|
||||||
--buyFrame:SetParent("AuctionFrame")
|
--buyFrame:SetParent("AuctionFrame")
|
||||||
@@ -481,12 +494,12 @@ function Aux_ContainerFrameItemButton_OnClick(button)
|
|||||||
elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
|
elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
|
||||||
Aux.sell.set_auction(bag, slot)
|
Aux.sell.set_auction(bag, slot)
|
||||||
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.sell.index then
|
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.sell.index then
|
||||||
AuctionFrameTab_OnClick(Aux.tabs.sell.index)
|
Aux.on_tab_click(2)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
elseif AUX_BUY_SHORTCUT and IsControlKeyDown() then
|
elseif AUX_BUY_SHORTCUT and IsControlKeyDown() then
|
||||||
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then
|
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then
|
||||||
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
|
Aux.on_tab_click(1)
|
||||||
end
|
end
|
||||||
AuxBuyNameInputBox.completor.set_quietly(container_item.name)
|
AuxBuyNameInputBox.completor.set_quietly(container_item.name)
|
||||||
Aux.buy.SearchButton_onclick()
|
Aux.buy.SearchButton_onclick()
|
||||||
|
|||||||
@@ -16,6 +16,81 @@
|
|||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
|
<Button name="AuxTabTemplate" virtual="true">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="64" y="32"/>
|
||||||
|
</Size>
|
||||||
|
<Layers>
|
||||||
|
<Layer level="BACKGROUND">
|
||||||
|
<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="16" y="32"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT"/>
|
||||||
|
</Anchors>
|
||||||
|
<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="16" y="32"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="RIGHT"/>
|
||||||
|
</Anchors>
|
||||||
|
<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="44" y="32"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
</Layer>
|
||||||
|
</Layers>
|
||||||
|
<Scripts>
|
||||||
|
<OnShow>
|
||||||
|
this:SetWidth(getglobal(this:GetName()..'Text'):GetStringWidth()+40)
|
||||||
|
</OnShow>
|
||||||
|
<OnClick>
|
||||||
|
Aux.on_tab_click(this:GetID())
|
||||||
|
</OnClick>
|
||||||
|
</Scripts>
|
||||||
|
<NormalText name="$parentText" inherits="GameFontNormalSmall">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="50" y="8"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="CENTER">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="-5"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
</NormalText>
|
||||||
|
<HighlightTexture name="$parentHighlight" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" setAllPoints="true">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="5" y="32"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="$parentLeft">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="-7"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
<Anchor point="RIGHT" relativeTo="$parentRight">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="-7"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
</HighlightTexture>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<Frame name="AuxFrameBoxTemplate" virtual="true">
|
<Frame name="AuxFrameBoxTemplate" virtual="true">
|
||||||
<Layers>
|
<Layers>
|
||||||
<Layer level="BACKGROUND">
|
<Layer level="BACKGROUND">
|
||||||
@@ -94,4 +169,173 @@
|
|||||||
</Size>
|
</Size>
|
||||||
</ThumbTexture>
|
</ThumbTexture>
|
||||||
</Slider>
|
</Slider>
|
||||||
|
|
||||||
|
<Frame name="AuxFrame" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="850" y="450"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="CENTER"/>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||||
|
this:RegisterForDrag('LeftButton')
|
||||||
|
</OnLoad>
|
||||||
|
<OnDragStart>
|
||||||
|
this:StartMoving()
|
||||||
|
</OnDragStart>
|
||||||
|
<OnDragStop>
|
||||||
|
this:StopMovingOrSizing()
|
||||||
|
</OnDragStop>
|
||||||
|
</Scripts>
|
||||||
|
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||||
|
<BackgroundInsets>
|
||||||
|
<AbsInset left="4" right="4" top="4" bottom="4"/>
|
||||||
|
</BackgroundInsets>
|
||||||
|
<TileSize>
|
||||||
|
<AbsValue val="32"/>
|
||||||
|
</TileSize>
|
||||||
|
<EdgeSize>
|
||||||
|
<AbsValue val="16"/>
|
||||||
|
</EdgeSize>
|
||||||
|
</Backdrop>
|
||||||
|
<Frames>
|
||||||
|
<Button name="AuctionFrameCloseButton" inherits="UIPanelCloseButton">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="TOPRIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxTab1" inherits="AuxTabTemplate" id="1">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="7" y="-2"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
getglobal(this:GetName().."Text"):SetText('Search')
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxTab2" inherits="AuxTabTemplate" id="2">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="AuxTab1" relativePoint="RIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
getglobal(this:GetName().."Text"):SetText('Post')
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxTab3" inherits="AuxTabTemplate" id="3">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="AuxTab2" relativePoint="RIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
getglobal(this:GetName().."Text"):SetText('Auctions')
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxTab4" inherits="AuxTabTemplate" id="4">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="AuxTab3" relativePoint="RIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
getglobal(this:GetName().."Text"):SetText('Bids')
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxTab5" inherits="AuxTabTemplate" id="5">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="AuxTab4" relativePoint="RIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
getglobal(this:GetName().."Text"):SetText('Scan')
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Frame name="AuxLogFrame" inherits="OptionFrameBoxTemplate">
|
||||||
|
<Size><AbsDimension x="400" y="71"/></Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="5" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
<Anchor point="BOTTOM">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="0" y="10"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||||
|
this:SetBackdropColor(0.15, 0.15, 0.15)
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
<Frames>
|
||||||
|
<ScrollingMessageFrame name="$parentMessageFrame" maxLines="500">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="TOPLEFT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="8" y="-5"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
<Anchor point="BOTTOMRIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="-8" y="9"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
Aux.log_frame_load()
|
||||||
|
</OnLoad>
|
||||||
|
<OnUpdate>
|
||||||
|
Aux.log_frame_update(arg1)
|
||||||
|
</OnUpdate>
|
||||||
|
<OnHyperlinkClick>
|
||||||
|
ChatFrame_OnHyperlinkShow(arg1)
|
||||||
|
</OnHyperlinkClick>
|
||||||
|
<OnMouseWheel>
|
||||||
|
if arg1 == 1 then
|
||||||
|
this:ScrollUp()
|
||||||
|
elseif arg1 == -1 then
|
||||||
|
this:ScrollDown()
|
||||||
|
end
|
||||||
|
</OnMouseWheel>
|
||||||
|
</Scripts>
|
||||||
|
<FontString inherits="ChatFontNormal" justifyH="LEFT"/>
|
||||||
|
</ScrollingMessageFrame>
|
||||||
|
</Frames>
|
||||||
|
</Frame>
|
||||||
|
</Frames>
|
||||||
|
</Frame>
|
||||||
</Ui>
|
</Ui>
|
||||||
@@ -2,7 +2,7 @@ local TOOLTIP_LENGTH = 30
|
|||||||
|
|
||||||
Aux.info = {}
|
Aux.info = {}
|
||||||
|
|
||||||
local hyperlink_item, item_id, item_charges
|
local hyperlink_item, item_id, item_charges, item_signature, parse_item_signature, parse_hyperlink
|
||||||
|
|
||||||
function Aux.info.container_item(bag, slot)
|
function Aux.info.container_item(bag, slot)
|
||||||
local hyperlink = GetContainerItemLink(bag, slot)
|
local hyperlink = GetContainerItemLink(bag, slot)
|
||||||
@@ -12,15 +12,16 @@ function Aux.info.container_item(bag, slot)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local container_item = hyperlink_item(hyperlink)
|
local container_item = hyperlink_item(hyperlink)
|
||||||
|
container_item.item_signature = item_signature(hyperlink)
|
||||||
local texture, count, locked, quality, readable, lootable, hyperlink = GetContainerItemInfo(bag, slot)
|
|
||||||
|
local texture, count, locked, quality, readable, lootable = GetContainerItemInfo(bag, slot)
|
||||||
container_item.texture = texture
|
container_item.texture = texture
|
||||||
container_item.count = count
|
container_item.count = count
|
||||||
container_item.locked = locked
|
container_item.locked = locked
|
||||||
container_item.readable = readable
|
container_item.readable = readable
|
||||||
container_item.lootable = lootable
|
container_item.lootable = lootable
|
||||||
container_item.hyperlink = hyperlink
|
container_item.hyperlink = hyperlink
|
||||||
|
|
||||||
container_item.tooltip = Aux.info.tooltip(function(tt) tt:SetBagItem(bag, slot) end)
|
container_item.tooltip = Aux.info.tooltip(function(tt) tt:SetBagItem(bag, slot) end)
|
||||||
container_item.charges = item_charges(container_item.tooltip)
|
container_item.charges = item_charges(container_item.tooltip)
|
||||||
|
|
||||||
@@ -154,6 +155,16 @@ function item_charges(tooltip)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function item_signature(hyperlink)
|
||||||
|
local item_id, suffix_id = parse_hyperlink(hyperlink)
|
||||||
|
return item_id..':'..suffix_id
|
||||||
|
end
|
||||||
|
|
||||||
|
function parse_item_signature(item_signature)
|
||||||
|
local _, _, item_id, suffix_id = strfind(item_signature, '^(%d+):(%d+)$')
|
||||||
|
return item_id, suffix_id
|
||||||
|
end
|
||||||
|
|
||||||
function item_id(hyperlink)
|
function item_id(hyperlink)
|
||||||
local _, _, id_string = strfind(hyperlink, "^.-:(%d*).*")
|
local _, _, id_string = strfind(hyperlink, "^.-:(%d*).*")
|
||||||
return tonumber(id_string)
|
return tonumber(id_string)
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ function Aux.sheet.render(sheet)
|
|||||||
for i, row in ipairs(rows) do
|
for i, row in ipairs(rows) do
|
||||||
local direction, rowR, rowG, rowB, rowA1, rowA2 = "Horizontal", 1, 1, 1, 0, 0 --row level coloring used for gradients
|
local direction, rowR, rowG, rowB, rowA1, rowA2 = "Horizontal", 1, 1, 1, 0, 0 --row level coloring used for gradients
|
||||||
local datum = data[i + offset]
|
local datum = data[i + offset]
|
||||||
|
if sheet.row_setter then
|
||||||
|
sheet.row_setter(row, datum)
|
||||||
|
end
|
||||||
for j, column in sheet.columns do
|
for j, column in sheet.columns do
|
||||||
local cell = row[j]
|
local cell = row[j]
|
||||||
if datum then
|
if datum then
|
||||||
@@ -57,7 +60,7 @@ function Aux.sheet.render(sheet)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Aux.sheet.create(frame, columns, sort_order, on_cell_click, on_cell_enter, on_cell_leave)
|
function Aux.sheet.create(frame, columns, sort_order, row_setter, on_cell_click, on_cell_enter, on_cell_leave)
|
||||||
local sheet
|
local sheet
|
||||||
local name = (frame:GetName() or '')..'ScrollSheet'
|
local name = (frame:GetName() or '')..'ScrollSheet'
|
||||||
|
|
||||||
@@ -192,6 +195,7 @@ function Aux.sheet.create(frame, columns, sort_order, on_cell_click, on_cell_ent
|
|||||||
columns = columns,
|
columns = columns,
|
||||||
data = {},
|
data = {},
|
||||||
sort_order = sort_order,
|
sort_order = sort_order,
|
||||||
|
row_setter = row_setter,
|
||||||
on_cell_click = on_cell_click,
|
on_cell_click = on_cell_click,
|
||||||
on_cell_enter = on_cell_enter,
|
on_cell_enter = on_cell_enter,
|
||||||
on_cell_leave = on_cell_leave,
|
on_cell_leave = on_cell_leave,
|
||||||
@@ -254,7 +258,7 @@ function Aux.list.sort(sheet, column_index)
|
|||||||
|
|
||||||
local column = sheet.columns[column_index]
|
local column = sheet.columns[column_index]
|
||||||
|
|
||||||
if sheet.sort_order[1].column == column then
|
if sheet.sort_order[1] and sheet.sort_order[1].column == column then
|
||||||
sheet.sort_order[1].sort_ascending = not sheet.sort_order[1].sort_ascending
|
sheet.sort_order[1].sort_ascending = not sheet.sort_order[1].sort_ascending
|
||||||
else
|
else
|
||||||
sheet.sort_order = Aux.util.filter(sheet.sort_order, function(sort_info) return not sort_info.column == column end)
|
sheet.sort_order = Aux.util.filter(sheet.sort_order, function(sort_info) return not sort_info.column == column end)
|
||||||
|
|||||||
+5
-1
@@ -19,7 +19,11 @@
|
|||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="758" y="-12"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="758" y="-12"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
Aux.options.show()
|
if AuxFrame:IsVisible() then
|
||||||
|
AuxFrame:Hide()
|
||||||
|
else
|
||||||
|
AuxFrame:Show()
|
||||||
|
end
|
||||||
</OnClick>
|
</OnClick>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -2,15 +2,192 @@ Aux.sell = {}
|
|||||||
|
|
||||||
auxSellEntries = {} -- persisted
|
auxSellEntries = {} -- persisted
|
||||||
|
|
||||||
-----------------------------------------
|
local inventory_data
|
||||||
|
|
||||||
local bestPriceOurStackSize
|
local bestPriceOurStackSize
|
||||||
|
|
||||||
local current_auction
|
local current_auction
|
||||||
|
|
||||||
-----------------------------------------
|
local set_auction, update_auction_listing, update_inventory_listing, record_auction, undercut, item_class_index, item_subclass_index, report, select_entry, update_recommendation, refresh_entries, auction_candidates, charge_classes, get_stack_size_slider_value
|
||||||
|
|
||||||
local record_auction, undercut, item_class_index, item_subclass_index, set_message, report, select_entry, update_recommendation, refresh_entries, availability, charge_classes, get_stack_size_slider_value
|
Aux.sell.inventory_listing_config = {
|
||||||
|
on_cell_click = function (sheet, row_index, column_index)
|
||||||
|
local data_index = row_index + FauxScrollFrame_GetOffset(sheet.scroll_frame)
|
||||||
|
set_auction(sheet.data[data_index])
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_cell_enter = function (sheet, row_index, column_index)
|
||||||
|
sheet.rows[row_index].highlight:SetAlpha(.5)
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_cell_leave = function (sheet, row_index, column_index)
|
||||||
|
local data_index = row_index + FauxScrollFrame_GetOffset(sheet.scroll_frame)
|
||||||
|
if not (current_auction and sheet.data[data_index] == current_auction) then
|
||||||
|
sheet.rows[row_index].highlight:SetAlpha(0)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
row_setter = function(row, datum)
|
||||||
|
if current_auction and datum == current_auction then
|
||||||
|
row.highlight:SetAlpha(.5)
|
||||||
|
else
|
||||||
|
row.highlight:SetAlpha(0)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
columns = {
|
||||||
|
{
|
||||||
|
title = 'Item',
|
||||||
|
width = 175,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.name, row2.name, Aux.util.GT) end,
|
||||||
|
cell_initializer = function(cell)
|
||||||
|
local icon = CreateFrame('Button', nil, cell)
|
||||||
|
local icon_texture = icon:CreateTexture(nil, 'BORDER')
|
||||||
|
icon_texture:SetAllPoints(icon)
|
||||||
|
icon.icon_texture = icon_texture
|
||||||
|
local normal_texture = icon:CreateTexture(nil)
|
||||||
|
normal_texture:SetPoint('CENTER', 0, 0)
|
||||||
|
normal_texture:SetWidth(22)
|
||||||
|
normal_texture:SetHeight(22)
|
||||||
|
normal_texture:SetTexture('Interface\\Buttons\\UI-Quickslot2')
|
||||||
|
icon:SetNormalTexture(normal_texture)
|
||||||
|
icon:SetPoint('LEFT', cell)
|
||||||
|
icon:SetWidth(12)
|
||||||
|
icon:SetHeight(12)
|
||||||
|
icon:SetNormalTexture('Interface\\Buttons\\UI-Quickslot2')
|
||||||
|
icon:SetPushedTexture('Interface\\Buttons\\UI-Quickslot-Depress')
|
||||||
|
icon:SetHighlightTexture('Interface\\Buttons\\ButtonHilight-Square')
|
||||||
|
local text = cell:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmall')
|
||||||
|
text:SetPoint("LEFT", icon, "RIGHT", 1, 0)
|
||||||
|
text:SetPoint('TOPRIGHT', cell)
|
||||||
|
text:SetPoint('BOTTOMRIGHT', cell)
|
||||||
|
text:SetJustifyV('TOP')
|
||||||
|
text:SetJustifyH('LEFT')
|
||||||
|
text:SetTextColor(0.8, 0.8, 0.8)
|
||||||
|
cell.text = text
|
||||||
|
cell.icon = icon
|
||||||
|
end,
|
||||||
|
cell_setter = function(cell, datum)
|
||||||
|
cell.icon.icon_texture:SetTexture(datum.texture)
|
||||||
|
cell.text:SetText('['..datum.name..']')
|
||||||
|
local color = ITEM_QUALITY_COLORS[datum.quality]
|
||||||
|
cell.text:SetTextColor(color.r, color.g, color.b)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Qty',
|
||||||
|
width = 23,
|
||||||
|
comparator = function(datum1, datum2) return Aux.util.compare(datum1.aux_quantity, datum2.aux_quantity, Aux.util.LT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, datum)
|
||||||
|
cell.text:SetText(datum.aux_quantity)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sort_order = {{column = 1, order = 'ascending' }},
|
||||||
|
}
|
||||||
|
|
||||||
|
Aux.sell.auction_listing_config = {
|
||||||
|
on_cell_click = function (sheet, row_index, column_index)
|
||||||
|
local data_index = row_index + FauxScrollFrame_GetOffset(sheet.scroll_frame)
|
||||||
|
AuxSellEntry_OnClick(sheet.data[data_index])
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_cell_enter = function (sheet, row_index, column_index)
|
||||||
|
sheet.rows[row_index].highlight:SetAlpha(.5)
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_cell_leave = function (sheet, row_index, column_index)
|
||||||
|
local data_index = row_index + FauxScrollFrame_GetOffset(sheet.scroll_frame)
|
||||||
|
if not (current_auction and auxSellEntries[current_auction.name] and sheet.data[data_index] == auxSellEntries[current_auction.name].selected) then
|
||||||
|
sheet.rows[row_index].highlight:SetAlpha(0)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
row_setter = function(row, datum)
|
||||||
|
if datum and current_auction and auxSellEntries[current_auction.name] and auxSellEntries[current_auction.name].selected == datum then
|
||||||
|
row.highlight:SetAlpha(.5)
|
||||||
|
else
|
||||||
|
row.highlight:SetAlpha(0)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
columns = {
|
||||||
|
{
|
||||||
|
title = 'Avail',
|
||||||
|
width = 40,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.count, row2.count, Aux.util.LT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, row)
|
||||||
|
cell.text:SetText(row.count)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Yours',
|
||||||
|
width = 40,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.yours, row2.yours, Aux.util.LT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, row)
|
||||||
|
cell.text:SetText(row.yours)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Max Left',
|
||||||
|
width = 55,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.max_time_left, row2.max_time_left, Aux.util.GT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('CENTER'),
|
||||||
|
cell_setter = function(cell, datum)
|
||||||
|
local text
|
||||||
|
if datum.max_time_left == 1 then
|
||||||
|
text = '30m'
|
||||||
|
elseif datum.max_time_left == 2 then
|
||||||
|
text = '2h'
|
||||||
|
elseif datum.max_time_left == 3 then
|
||||||
|
text = '8h'
|
||||||
|
elseif datum.max_time_left == 4 then
|
||||||
|
text = '24h'
|
||||||
|
end
|
||||||
|
cell.text:SetText(text)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Buy/ea',
|
||||||
|
width = 70,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.unit_buyout_price, row2.unit_buyout_price, Aux.util.GT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, row)
|
||||||
|
cell.text:SetText(Aux.util.money_string(row.unit_buyout_price))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Qty',
|
||||||
|
width = 23,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.stack_size, row2.stack_size, Aux.util.LT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, row)
|
||||||
|
cell.text:SetText(row.stack_size)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title = 'Buy',
|
||||||
|
width = 70,
|
||||||
|
comparator = function(row1, row2) return Aux.util.compare(row1.buyout_price, row2.buyout_price, Aux.util.GT) end,
|
||||||
|
cell_initializer = Aux.sheet.default_cell_initializer('RIGHT'),
|
||||||
|
cell_setter = function(cell, row)
|
||||||
|
cell.text:SetText(Aux.util.money_string(row.buyout_price))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sort_order = {{column = 2, order = 'ascending' }, {column = 4, order = 'ascending'}},
|
||||||
|
}
|
||||||
|
|
||||||
|
function update_inventory_listing()
|
||||||
|
Aux.list.populate(AuxSellInventoryListing.sheet, inventory_data)
|
||||||
|
end
|
||||||
|
|
||||||
|
function update_auction_listing()
|
||||||
|
Aux.list.populate(AuxSellAuctionsListing.sheet, current_auction and auxSellEntries[current_auction.name] or {})
|
||||||
|
end
|
||||||
|
|
||||||
function Aux.sell.on_open()
|
function Aux.sell.on_open()
|
||||||
AuxSellStackSizeSlider:SetValueStep(1)
|
AuxSellStackSizeSlider:SetValueStep(1)
|
||||||
@@ -20,6 +197,11 @@ function Aux.sell.on_open()
|
|||||||
AuxSellStackCountSliderText:SetText('Stack Count')
|
AuxSellStackCountSliderText:SetText('Stack Count')
|
||||||
|
|
||||||
Aux.sell.validate_parameters()
|
Aux.sell.validate_parameters()
|
||||||
|
|
||||||
|
inventory_data = auction_candidates()
|
||||||
|
|
||||||
|
update_inventory_listing()
|
||||||
|
update_auction_listing()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Aux.sell.duration_radio_button_on_click(index)
|
function Aux.sell.duration_radio_button_on_click(index)
|
||||||
@@ -71,8 +253,8 @@ end
|
|||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
function Aux.sell.post_auctions()
|
function Aux.sell.post_auctions()
|
||||||
if current_auction and PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.sell.index then
|
if current_auction then
|
||||||
local name, stack_size, buyout_price, stack_count = current_auction.name, get_stack_size_slider_value(), MoneyInputFrame_GetCopper(AuxSellParametersBuyoutPrice), AuxSellStackCountSlider:GetValue()
|
local name, hyperlink, stack_size, buyout_price, stack_count = current_auction.name, current_auction.hyperlink, get_stack_size_slider_value(), MoneyInputFrame_GetCopper(AuxSellParametersBuyoutPrice), AuxSellStackCountSlider:GetValue()
|
||||||
local duration
|
local duration
|
||||||
if AuctionFrameAuctions.duration == 120 then
|
if AuctionFrameAuctions.duration == 120 then
|
||||||
duration = 2
|
duration = 2
|
||||||
@@ -101,11 +283,9 @@ function Aux.sell.post_auctions()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
Aux.sell.clear_auction()
|
Aux.sell.clear_auction()
|
||||||
report(name, stack_size, buyout_price, posted)
|
report(hyperlink, stack_size, buyout_price, posted)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
else
|
|
||||||
Aux.orig.AuctionsCreateAuctionButton_OnClick()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -115,16 +295,6 @@ function Aux.sell.AuctionSellItemButton_OnEvent()
|
|||||||
Aux.orig.AuctionSellItemButton_OnEvent()
|
Aux.orig.AuctionSellItemButton_OnEvent()
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------
|
|
||||||
|
|
||||||
function set_message(msg)
|
|
||||||
Aux_HideElems(Aux.tabs.sell.recommendationElements)
|
|
||||||
AuxMessage:SetText(msg)
|
|
||||||
AuxMessage:Show()
|
|
||||||
end
|
|
||||||
|
|
||||||
-----------------------------------------
|
|
||||||
|
|
||||||
function select_entry()
|
function select_entry()
|
||||||
|
|
||||||
if current_auction and auxSellEntries[current_auction.name] and not auxSellEntries[current_auction.name].selected then
|
if current_auction and auxSellEntries[current_auction.name] and not auxSellEntries[current_auction.name].selected then
|
||||||
@@ -134,11 +304,11 @@ function select_entry()
|
|||||||
----- find the best price per stacksize and overall -----
|
----- find the best price per stacksize and overall -----
|
||||||
|
|
||||||
for _,auxEntry in ipairs(auxSellEntries[current_auction.name]) do
|
for _,auxEntry in ipairs(auxSellEntries[current_auction.name]) do
|
||||||
if not bestPrice[auxEntry.stackSize] or bestPrice[auxEntry.stackSize].itemPrice >= auxEntry.itemPrice then
|
if not bestPrice[auxEntry.stack_size] or bestPrice[auxEntry.stack_size].unit_buyout_price >= auxEntry.unit_buyout_price then
|
||||||
bestPrice[auxEntry.stackSize] = auxEntry
|
bestPrice[auxEntry.stack_size] = auxEntry
|
||||||
end
|
end
|
||||||
|
|
||||||
if not absoluteBest or absoluteBest.itemPrice > auxEntry.itemPrice then
|
if not absoluteBest or absoluteBest.unit_buyout_price > auxEntry.unit_buyout_price then
|
||||||
absoluteBest = auxEntry
|
absoluteBest = auxEntry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -155,7 +325,7 @@ end
|
|||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
function get_stack_size_slider_value()
|
function get_stack_size_slider_value()
|
||||||
if current_auction.has_charges then
|
if current_auction.charges then
|
||||||
return AuxSellStackSizeSlider.charge_classes[AuxSellStackSizeSlider:GetValue()]
|
return AuxSellStackSizeSlider.charge_classes[AuxSellStackSizeSlider:GetValue()]
|
||||||
else
|
else
|
||||||
return AuxSellStackSizeSlider:GetValue()
|
return AuxSellStackSizeSlider:GetValue()
|
||||||
@@ -188,9 +358,9 @@ function update_recommendation()
|
|||||||
if not current_auction then
|
if not current_auction then
|
||||||
AuxSellRefreshButton:Disable()
|
AuxSellRefreshButton:Disable()
|
||||||
|
|
||||||
AuxSellItem:SetNormalTexture(nil)
|
AuxSellParametersItemIconTexture:SetTexture(nil)
|
||||||
AuxSellItemName:SetText()
|
AuxSellParametersItemCount:SetText()
|
||||||
AuxSellItemCount:SetText()
|
AuxSellParametersItemName:SetText()
|
||||||
|
|
||||||
MoneyInputFrame_SetCopper(AuxSellParametersBuyoutPrice, 0)
|
MoneyInputFrame_SetCopper(AuxSellParametersBuyoutPrice, 0)
|
||||||
MoneyInputFrame_SetCopper(AuxSellParametersStartPrice, 0)
|
MoneyInputFrame_SetCopper(AuxSellParametersStartPrice, 0)
|
||||||
@@ -199,24 +369,24 @@ function update_recommendation()
|
|||||||
AuxSellStackSize:SetNumber(0)
|
AuxSellStackSize:SetNumber(0)
|
||||||
AuxSellStackCountSlider:SetMinMaxValues(0,0)
|
AuxSellStackCountSlider:SetMinMaxValues(0,0)
|
||||||
AuxSellStackCount:SetNumber(0)
|
AuxSellStackCount:SetNumber(0)
|
||||||
|
|
||||||
set_message("Drag an item to the Auction Item area\n\nto see recommended pricing information")
|
|
||||||
else
|
else
|
||||||
AuxSellStackSize:SetNumber(AuxSellStackSizeSlider:GetValue())
|
AuxSellStackSize:SetNumber(AuxSellStackSizeSlider:GetValue())
|
||||||
AuxSellStackCount:SetNumber(AuxSellStackCountSlider:GetValue())
|
AuxSellStackCount:SetNumber(AuxSellStackCountSlider:GetValue())
|
||||||
|
|
||||||
AuxSellItem:SetNormalTexture(current_auction.texture)
|
AuxSellParametersItemIconTexture:SetTexture(current_auction.texture)
|
||||||
AuxSellItemName:SetText(current_auction.name)
|
AuxSellParametersItemName:SetText(current_auction.name)
|
||||||
|
local color = ITEM_QUALITY_COLORS[current_auction.quality]
|
||||||
|
AuxSellParametersItemName:SetTextColor(color.r, color.g, color.b)
|
||||||
if get_stack_size_slider_value() > 1 then
|
if get_stack_size_slider_value() > 1 then
|
||||||
AuxSellItemCount:SetText(get_stack_size_slider_value())
|
AuxSellParametersItemCount:SetText(get_stack_size_slider_value())
|
||||||
AuxSellItemCount:Show()
|
AuxSellParametersItemCount:Show()
|
||||||
else
|
else
|
||||||
AuxSellItemCount:Hide()
|
AuxSellParametersItemCount:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
AuxSellRefreshButton:Enable()
|
AuxSellRefreshButton:Enable()
|
||||||
|
|
||||||
MoneyFrame_Update("AuctionsDepositMoneyFrame", floor(current_auction.vendor_price_per_unit * current_auction.deposit_factor * (current_auction.has_charges and 1 or get_stack_size_slider_value())) * AuxSellStackCountSlider:GetValue() * AuctionFrameAuctions.duration / 120)
|
MoneyFrame_Update("AuctionsDepositMoneyFrame", floor(current_auction.vendor_price_per_unit * current_auction.deposit_factor * (current_auction.charges and 1 or get_stack_size_slider_value())) * AuxSellStackCountSlider:GetValue() * AuctionFrameAuctions.duration / 120)
|
||||||
|
|
||||||
if auxSellEntries[current_auction.name] and auxSellEntries[current_auction.name].selected then
|
if auxSellEntries[current_auction.name] and auxSellEntries[current_auction.name].selected then
|
||||||
if not auxSellEntries[current_auction.name].created or GetTime() - auxSellEntries[current_auction.name].created > 1800 then
|
if not auxSellEntries[current_auction.name].created or GetTime() - auxSellEntries[current_auction.name].created > 1800 then
|
||||||
@@ -224,47 +394,46 @@ function update_recommendation()
|
|||||||
AuxRecommendStaleText:Show()
|
AuxRecommendStaleText:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
local newBuyoutPrice = auxSellEntries[current_auction.name].selected.itemPrice * get_stack_size_slider_value()
|
local newBuyoutPrice = auxSellEntries[current_auction.name].selected.unit_buyout_price * get_stack_size_slider_value()
|
||||||
|
|
||||||
if auxSellEntries[current_auction.name].selected.numYours == 0 then
|
if auxSellEntries[current_auction.name].selected.yours == 0 then
|
||||||
newBuyoutPrice = undercut(newBuyoutPrice)
|
newBuyoutPrice = undercut(newBuyoutPrice)
|
||||||
end
|
end
|
||||||
|
|
||||||
local newStartPrice = newBuyoutPrice * 0.95
|
local newStartPrice = newBuyoutPrice * 0.95
|
||||||
|
|
||||||
AuxMessage:Hide()
|
|
||||||
Aux_ShowElems(Aux.tabs.sell.recommendationElements)
|
Aux_ShowElems(Aux.tabs.sell.recommendationElements)
|
||||||
|
|
||||||
AuxRecommendText:SetText("Recommended Buyout Price")
|
-- AuxRecommendText:SetText("Recommended Buyout Price")
|
||||||
AuxRecommendPerStackText:SetText("for a stack of "..get_stack_size_slider_value())
|
-- AuxRecommendPerStackText:SetText("for a stack of "..get_stack_size_slider_value())
|
||||||
|
|
||||||
|
|
||||||
AuxRecommendItemTex:SetNormalTexture(current_auction.texture)
|
-- AuxRecommendItemTex:SetNormalTexture(current_auction.texture)
|
||||||
if AuxSellStackSize:GetNumber() > 1 then
|
-- if AuxSellStackSize:GetNumber() > 1 then
|
||||||
AuxRecommendItemTexCount:SetText(get_stack_size_slider_value())
|
-- AuxRecommendItemTexCount:SetText(get_stack_size_slider_value())
|
||||||
AuxRecommendItemTexCount:Show()
|
-- AuxRecommendItemTexCount:Show()
|
||||||
else
|
-- else
|
||||||
AuxRecommendItemTexCount:Hide()
|
-- AuxRecommendItemTexCount:Hide()
|
||||||
end
|
-- end
|
||||||
|
|
||||||
MoneyFrame_Update("AuxRecommendPerItemPrice", Aux_Round(get_stack_size_slider_value() > 0 and newBuyoutPrice / get_stack_size_slider_value() or 0))
|
-- MoneyFrame_Update("AuxRecommendPerItemPrice", Aux_Round(get_stack_size_slider_value() > 0 and newBuyoutPrice / get_stack_size_slider_value() or 0))
|
||||||
MoneyFrame_Update("AuxRecommendPerStackPrice", Aux_Round(newBuyoutPrice))
|
-- MoneyFrame_Update("AuxRecommendPerStackPrice", Aux_Round(newBuyoutPrice))
|
||||||
|
|
||||||
MoneyInputFrame_SetCopper(AuxSellParametersBuyoutPrice, Aux_Round(newBuyoutPrice))
|
MoneyInputFrame_SetCopper(AuxSellParametersBuyoutPrice, Aux_Round(newBuyoutPrice))
|
||||||
MoneyInputFrame_SetCopper(AuxSellParametersStartPrice, Aux_Round(newStartPrice))
|
MoneyInputFrame_SetCopper(AuxSellParametersStartPrice, Aux_Round(newStartPrice))
|
||||||
|
|
||||||
if auxSellEntries[current_auction.name].selected.stackSize == auxSellEntries[current_auction.name][1].stackSize and auxSellEntries[current_auction.name].selected.buyoutPrice == auxSellEntries[current_auction.name][1].buyoutPrice then
|
-- if auxSellEntries[current_auction.name].selected.stack_size == auxSellEntries[current_auction.name][1].stack_size and auxSellEntries[current_auction.name].selected.buyout_price == auxSellEntries[current_auction.name][1].buyout_price then
|
||||||
AuxRecommendBasisText:SetText("(based on cheapest)")
|
-- AuxRecommendBasisText:SetText("(based on cheapest)")
|
||||||
elseif bestPriceOurStackSize and auxSellEntries[current_auction.name].selected.stackSize == bestPriceOurStackSize.stackSize and auxSellEntries[current_auction.name].selected.buyoutPrice == bestPriceOurStackSize.buyoutPrice then
|
-- elseif bestPriceOurStackSize and auxSellEntries[current_auction.name].selected.stack_size == bestPriceOurStackSize.stack_size and auxSellEntries[current_auction.name].selected.buyout_price == bestPriceOurStackSize.buyout_price then
|
||||||
AuxRecommendBasisText:SetText("(based on cheapest stack of the same size)")
|
-- AuxRecommendBasisText:SetText("(based on cheapest stack of the same size)")
|
||||||
else
|
-- else
|
||||||
AuxRecommendBasisText:SetText("(based on auction selected below)")
|
-- AuxRecommendBasisText:SetText("(based on auction selected below)")
|
||||||
end
|
-- end
|
||||||
elseif auxSellEntries[current_auction.name] then
|
elseif auxSellEntries[current_auction.name] then
|
||||||
set_message("No auctions were found for \n\n"..current_auction.name)
|
Aux.log("No auctions were found for "..current_auction.name)
|
||||||
auxSellEntries[current_auction.name] = nil
|
auxSellEntries[current_auction.name] = nil
|
||||||
else
|
else
|
||||||
Aux_HideElems(Aux.tabs.sell.shownElements)
|
-- Aux_HideElems(Aux.tabs.sell.shownElements)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -273,7 +442,7 @@ end
|
|||||||
|
|
||||||
function Aux.sell.quantity_update()
|
function Aux.sell.quantity_update()
|
||||||
if current_auction then
|
if current_auction then
|
||||||
AuxSellStackCountSlider:SetMinMaxValues(1, current_auction.has_charges and current_auction.availability[AuxSellStackSizeSlider.charge_classes[AuxSellStackSizeSlider.GetValue()]] or floor(current_auction.availability[0] / get_stack_size_slider_value()))
|
AuxSellStackCountSlider:SetMinMaxValues(1, current_auction.charges and current_auction.availability[AuxSellStackSizeSlider.charge_classes[AuxSellStackSizeSlider.GetValue()]] or floor(current_auction.availability[0] / get_stack_size_slider_value()))
|
||||||
end
|
end
|
||||||
select_entry()
|
select_entry()
|
||||||
update_recommendation()
|
update_recommendation()
|
||||||
@@ -289,51 +458,33 @@ end
|
|||||||
|
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
function Aux.sell.set_auction(bag, slot)
|
function set_auction(auction_candidate)
|
||||||
|
|
||||||
local container_item = Aux.info.container_item(bag, slot)
|
|
||||||
|
|
||||||
if container_item then
|
|
||||||
|
|
||||||
ClearCursor()
|
|
||||||
PickupContainerItem(bag,slot)
|
|
||||||
ClickAuctionSellItemButton()
|
|
||||||
local auction_sell_item = Aux.info.auction_sell_item()
|
|
||||||
ClearCursor()
|
|
||||||
ClickAuctionSellItemButton()
|
|
||||||
ClearCursor()
|
|
||||||
|
|
||||||
if auction_sell_item then
|
|
||||||
|
|
||||||
Aux.scan.abort(function()
|
Aux.scan.abort(function()
|
||||||
|
|
||||||
current_auction = {
|
current_auction = auction_candidate
|
||||||
name = container_item.name,
|
|
||||||
texture = container_item.texture,
|
local charge_classes = charge_classes(current_auction.availability)
|
||||||
class = container_item.type,
|
AuxSellStackSizeSlider.charge_classes = charge_classes
|
||||||
subclass = container_item.subtype,
|
local stack_size_slider_max = current_auction.charges and getn(charge_classes) or min(current_auction.max_stack, current_auction.availability[0])
|
||||||
deposit_factor = auction_sell_item.deposit_factor,
|
AuxSellStackSizeSlider:SetMinMaxValues(1, stack_size_slider_max)
|
||||||
vendor_price_per_unit = auction_sell_item.vendor_price_per_unit,
|
|
||||||
has_charges = container_item.charges ~= nil,
|
AuxSellStackSizeSlider:SetValue(stack_size_slider_max)
|
||||||
availability = availability(container_item.name)
|
AuxSellStackCountSlider:SetValue(1)
|
||||||
}
|
|
||||||
|
Aux.sell.quantity_update()
|
||||||
|
|
||||||
|
if not auxSellEntries[current_auction.name] then
|
||||||
|
refresh_entries()
|
||||||
|
end
|
||||||
|
|
||||||
|
select_entry()
|
||||||
|
update_recommendation()
|
||||||
|
update_auction_listing()
|
||||||
|
update_inventory_listing()
|
||||||
|
|
||||||
|
end)
|
||||||
|
|
||||||
AuxSellStackSizeSlider.charge_classes = charge_classes(current_auction.availability)
|
|
||||||
AuxSellStackSizeSlider:SetMinMaxValues(1, current_auction.has_charges and getn(charge_classes(current_auction.availability)) or min(container_item.max_stack, current_auction.availability[0]))
|
|
||||||
AuxSellStackSizeSlider:SetValue(current_auction.has_charges and Aux.util.index_of(container_item.charges, charge_classes(current_auction.availability)) or container_item.count)
|
|
||||||
AuxSellStackCountSlider:SetValue(1)
|
|
||||||
Aux.sell.quantity_update()
|
|
||||||
|
|
||||||
if not auxSellEntries[current_auction.name] then
|
|
||||||
refresh_entries()
|
|
||||||
end
|
|
||||||
|
|
||||||
select_entry()
|
|
||||||
update_recommendation()
|
|
||||||
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function charge_classes(availability)
|
function charge_classes(availability)
|
||||||
@@ -345,20 +496,66 @@ function charge_classes(availability)
|
|||||||
return charge_classes
|
return charge_classes
|
||||||
end
|
end
|
||||||
|
|
||||||
function availability(name)
|
function auction_candidates()
|
||||||
local availability = {}
|
|
||||||
for bag = 0, 4 do
|
local auction_candidate_map = {}
|
||||||
if GetBagName(bag) then
|
|
||||||
for slot = 1, GetContainerNumSlots(bag) do
|
Aux.util.without_sound(function()
|
||||||
local item_info = Aux.info.container_item(bag, slot)
|
Aux.util.without_errors(function()
|
||||||
if item_info and item_info.name == name then
|
|
||||||
local charge_class = item_info.charges or 0
|
for bag = 0, 4 do
|
||||||
availability[charge_class] = (availability[charge_class] or 0) + item_info.count
|
if GetBagName(bag) then
|
||||||
|
for slot = 1, GetContainerNumSlots(bag) do
|
||||||
|
local item_info = Aux.info.container_item(bag, slot)
|
||||||
|
|
||||||
|
if item_info then
|
||||||
|
|
||||||
|
local charge_class = item_info.charges or 0
|
||||||
|
|
||||||
|
ClearCursor()
|
||||||
|
PickupContainerItem(bag,slot)
|
||||||
|
ClickAuctionSellItemButton()
|
||||||
|
local auction_sell_item = Aux.info.auction_sell_item()
|
||||||
|
ClearCursor()
|
||||||
|
ClickAuctionSellItemButton()
|
||||||
|
ClearCursor()
|
||||||
|
|
||||||
|
if auction_sell_item then
|
||||||
|
if not auction_candidate_map[item_info.item_signature] then
|
||||||
|
|
||||||
|
auction_candidate_map[item_info.item_signature] = {
|
||||||
|
hyperlink = item_info.hyperlink,
|
||||||
|
name = item_info.name,
|
||||||
|
texture = item_info.texture,
|
||||||
|
quality = item_info.quality,
|
||||||
|
class = item_info.type,
|
||||||
|
subclass = item_info.subtype,
|
||||||
|
deposit_factor = auction_sell_item.deposit_factor,
|
||||||
|
vendor_price_per_unit = auction_sell_item.vendor_price_per_unit,
|
||||||
|
charges = item_info.charges,
|
||||||
|
aux_quantity = item_info.charges or item_info.count,
|
||||||
|
max_stack = item_info.max_stack,
|
||||||
|
availability = { [charge_class]=item_info.count },
|
||||||
|
}
|
||||||
|
else
|
||||||
|
local candidate = auction_candidate_map[item_info.item_signature]
|
||||||
|
candidate.availability[charge_class] = (candidate.availability[charge_class] or 0) + item_info.count
|
||||||
|
candidate.aux_quantity = candidate.aux_quantity + (item_info.charges or item_info.count)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
|
local auction_candidates = {}
|
||||||
|
for _, auction_candidate in pairs(auction_candidate_map) do
|
||||||
|
tinsert(auction_candidates, auction_candidate)
|
||||||
end
|
end
|
||||||
return availability
|
return auction_candidates
|
||||||
end
|
end
|
||||||
|
|
||||||
function refresh_entries()
|
function refresh_entries()
|
||||||
@@ -372,7 +569,7 @@ function refresh_entries()
|
|||||||
-- local class_index = item_class_index(current_auction.class)
|
-- local class_index = item_class_index(current_auction.class)
|
||||||
-- local subclass_index = item_subclass_index(class_index, current_auction.subclass)
|
-- local subclass_index = item_subclass_index(class_index, current_auction.subclass)
|
||||||
|
|
||||||
set_message('Scanning auctions ...')
|
Aux.log('Scanning auctions ...')
|
||||||
Aux.scan.start{
|
Aux.scan.start{
|
||||||
query = {
|
query = {
|
||||||
name = name,
|
name = name,
|
||||||
@@ -381,7 +578,7 @@ function refresh_entries()
|
|||||||
},
|
},
|
||||||
page = 0,
|
page = 0,
|
||||||
on_start_page = function(page, total_pages)
|
on_start_page = function(page, total_pages)
|
||||||
set_message('Scanning auctions: page ' .. page + 1 .. (total_pages > 0 and ' out of ' .. total_pages or '') .. ' ...')
|
Aux.log('Scanning page ' .. page + 1 .. (total_pages > 0 and ' out of ' .. total_pages or '') .. ' ...')
|
||||||
end,
|
end,
|
||||||
on_read_auction = function(i)
|
on_read_auction = function(i)
|
||||||
local auction_item = Aux.info.auction_item(i)
|
local auction_item = Aux.info.auction_item(i)
|
||||||
@@ -408,98 +605,92 @@ function refresh_entries()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------
|
|
||||||
|
|
||||||
function Aux.sell.scrollbar_update()
|
function Aux.sell.scrollbar_update()
|
||||||
|
|
||||||
local numrows
|
-- local numrows
|
||||||
if not current_auction or not auxSellEntries[current_auction.name] then
|
-- if not current_auction or not auxSellEntries[current_auction.name] then
|
||||||
numrows = 0
|
-- numrows = 0
|
||||||
else
|
-- else
|
||||||
numrows = getn(auxSellEntries[current_auction.name])
|
-- numrows = getn(auxSellEntries[current_auction.name])
|
||||||
end
|
-- end
|
||||||
|
|
||||||
FauxScrollFrame_Update(AuxScrollFrame, numrows, 12, 16)
|
-- FauxScrollFrame_Update(AuxScrollFrame, numrows, 12, 16)
|
||||||
|
|
||||||
for line = 1, 12 do
|
-- for line = 1, 12 do
|
||||||
|
|
||||||
local dataOffset = line + FauxScrollFrame_GetOffset(AuxScrollFrame)
|
-- local dataOffset = 1 -- line + FauxScrollFrame_GetOffset(AuxScrollFrame)
|
||||||
local lineEntry = getglobal("AuxSellEntry"..line)
|
-- local lineEntry = getglobal("AuxSellEntry"..line)
|
||||||
|
--
|
||||||
|
-- if numrows <= 12 then
|
||||||
|
-- lineEntry:SetWidth(603)
|
||||||
|
-- else
|
||||||
|
-- lineEntry:SetWidth(585)
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- lineEntry:SetID(dataOffset)
|
||||||
|
|
||||||
if numrows <= 12 then
|
-- if current_auction and dataOffset <= numrows and auxSellEntries[current_auction.name] then
|
||||||
lineEntry:SetWidth(603)
|
--
|
||||||
else
|
-- local entry = auxSellEntries[current_auction.name][dataOffset]
|
||||||
lineEntry:SetWidth(585)
|
--
|
||||||
end
|
-- if auxSellEntries[current_auction.name].selected and entry.unit_buyout_price == auxSellEntries[current_auction.name].selected.unit_buyout_price and entry.stack_size == auxSellEntries[current_auction.name].selected.stack_size then
|
||||||
|
-- lineEntry:LockHighlight()
|
||||||
lineEntry:SetID(dataOffset)
|
-- else
|
||||||
|
-- lineEntry:UnlockHighlight()
|
||||||
if current_auction and dataOffset <= numrows and auxSellEntries[current_auction.name] then
|
-- end
|
||||||
|
--
|
||||||
local entry = auxSellEntries[current_auction.name][dataOffset]
|
-- local lineEntry_stacks = getglobal("AuxSellEntry"..line.."_Stacks")
|
||||||
|
-- local lineEntry_time = getglobal("AuxSellEntry"..line.."_Time")
|
||||||
if auxSellEntries[current_auction.name].selected and entry.itemPrice == auxSellEntries[current_auction.name].selected.itemPrice and entry.stackSize == auxSellEntries[current_auction.name].selected.stackSize then
|
--
|
||||||
lineEntry:LockHighlight()
|
-- if entry.max_time_left == 1 then
|
||||||
else
|
-- lineEntry_time:SetText("Short")
|
||||||
lineEntry:UnlockHighlight()
|
-- elseif entry.max_time_left == 2 then
|
||||||
end
|
-- lineEntry_time:SetText("Medium")
|
||||||
|
-- elseif entry.max_time_left == 3 then
|
||||||
local lineEntry_stacks = getglobal("AuxSellEntry"..line.."_Stacks")
|
-- lineEntry_time:SetText("Long")
|
||||||
local lineEntry_time = getglobal("AuxSellEntry"..line.."_Time")
|
-- elseif entry.max_time_left == 4 then
|
||||||
|
-- lineEntry_time:SetText("Very Long")
|
||||||
if entry.maxTimeLeft == 1 then
|
-- end
|
||||||
lineEntry_time:SetText("Short")
|
--
|
||||||
elseif entry.maxTimeLeft == 2 then
|
-- if entry.stack_size == get_stack_size_slider_value() then
|
||||||
lineEntry_time:SetText("Medium")
|
-- lineEntry_stacks:SetTextColor(0.2, 0.9, 0.2)
|
||||||
elseif entry.maxTimeLeft == 3 then
|
-- else
|
||||||
lineEntry_time:SetText("Long")
|
-- lineEntry_stacks:SetTextColor(1.0, 1.0, 1.0)
|
||||||
elseif entry.maxTimeLeft == 4 then
|
-- end
|
||||||
lineEntry_time:SetText("Very Long")
|
--
|
||||||
end
|
-- local own
|
||||||
|
-- if entry.yours == 0 then
|
||||||
if entry.stackSize == get_stack_size_slider_value() then
|
-- own = ""
|
||||||
lineEntry_stacks:SetTextColor(0.2, 0.9, 0.2)
|
-- elseif
|
||||||
else
|
-- entry.yours == entry.count then
|
||||||
lineEntry_stacks:SetTextColor(1.0, 1.0, 1.0)
|
-- own = "(yours)"
|
||||||
end
|
-- else
|
||||||
|
-- own = "(yours: "..entry.yours..")"
|
||||||
local own
|
-- end
|
||||||
if entry.numYours == 0 then
|
--
|
||||||
own = ""
|
-- local tx = string.format("%i %s of %i %s", entry.count, Aux_PluralizeIf("stack", entry.count), entry.stack_size, own)
|
||||||
elseif
|
-- lineEntry_stacks:SetText(tx)
|
||||||
entry.numYours == entry.count then
|
--
|
||||||
own = "(yours)"
|
-- MoneyFrame_Update("AuxSellEntry"..line.."_UnitPrice", Aux_Round(entry.buyout_price/entry.stack_size))
|
||||||
else
|
-- MoneyFrame_Update("AuxSellEntry"..line.."_TotalPrice", Aux_Round(entry.buyout_price))
|
||||||
own = "(yours: "..entry.numYours..")"
|
--
|
||||||
end
|
-- lineEntry:Show()
|
||||||
|
-- else
|
||||||
local tx = string.format("%i %s of %i %s", entry.count, Aux_PluralizeIf("stack", entry.count), entry.stackSize, own)
|
-- lineEntry:Hide()
|
||||||
lineEntry_stacks:SetText(tx)
|
-- end
|
||||||
|
-- end
|
||||||
MoneyFrame_Update("AuxSellEntry"..line.."_UnitPrice", Aux_Round(entry.buyoutPrice/entry.stackSize))
|
|
||||||
MoneyFrame_Update("AuxSellEntry"..line.."_TotalPrice", Aux_Round(entry.buyoutPrice))
|
|
||||||
|
|
||||||
lineEntry:Show()
|
|
||||||
else
|
|
||||||
lineEntry:Hide()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------
|
function AuxSellEntry_OnClick(entry)
|
||||||
|
|
||||||
function AuxSellEntry_OnClick()
|
auxSellEntries[current_auction.name].selected = entry
|
||||||
local entryIndex = this:GetID()
|
|
||||||
|
|
||||||
auxSellEntries[current_auction.name].selected = auxSellEntries[current_auction.name][entryIndex]
|
|
||||||
|
|
||||||
|
update_auction_listing()
|
||||||
update_recommendation()
|
update_recommendation()
|
||||||
|
|
||||||
PlaySound("igMainMenuOptionCheckBoxOn")
|
PlaySound("igMainMenuOptionCheckBoxOn")
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------
|
|
||||||
|
|
||||||
function AuxSellRefreshButton_OnClick()
|
function AuxSellRefreshButton_OnClick()
|
||||||
Aux.scan.abort(function()
|
Aux.scan.abort(function()
|
||||||
refresh_entries()
|
refresh_entries()
|
||||||
@@ -523,25 +714,25 @@ function record_auction(name, stack_size, buyout_price, duration, owner)
|
|||||||
auxSellEntries[name] = auxSellEntries[name] or { created = GetTime() }
|
auxSellEntries[name] = auxSellEntries[name] or { created = GetTime() }
|
||||||
local entry
|
local entry
|
||||||
for _, existingEntry in ipairs(auxSellEntries[name]) do
|
for _, existingEntry in ipairs(auxSellEntries[name]) do
|
||||||
if existingEntry.buyoutPrice == buyout_price and existingEntry.stackSize == stack_size then
|
if existingEntry.buyout_price == buyout_price and existingEntry.stack_size == stack_size then
|
||||||
entry = existingEntry
|
entry = existingEntry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if entry then
|
if entry then
|
||||||
entry.count = entry.count + 1
|
entry.count = entry.count + 1
|
||||||
entry.numYours = entry.numYours + (owner == UnitName("player") and 1 or 0)
|
entry.yours = entry.yours + (owner == UnitName("player") and 1 or 0)
|
||||||
entry.maxTimeLeft = max(entry.maxTimeLeft, duration)
|
entry.max_time_left = max(entry.max_time_left, duration)
|
||||||
else
|
else
|
||||||
entry = {
|
entry = {
|
||||||
stackSize = stack_size,
|
stack_size = stack_size,
|
||||||
buyoutPrice = buyout_price,
|
buyout_price = buyout_price,
|
||||||
itemPrice = buyout_price / stack_size,
|
unit_buyout_price = buyout_price / stack_size,
|
||||||
maxTimeLeft = duration,
|
max_time_left = duration,
|
||||||
count = 1,
|
count = 1,
|
||||||
numYours = owner == UnitName("player") and 1 or 0,
|
yours = owner == UnitName("player") and 1 or 0,
|
||||||
}
|
}
|
||||||
tinsert(auxSellEntries[name], entry)
|
tinsert(auxSellEntries[name], entry)
|
||||||
table.sort(auxSellEntries[name], function(a,b) return a.itemPrice < b.itemPrice end)
|
table.sort(auxSellEntries[name], function(a,b) return a.unit_buyout_price < b.unit_buyout_price end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -574,30 +765,12 @@ end
|
|||||||
|
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
function report(item_name, stack_size, buyout_price, posted)
|
function report(hyperlink, stack_size, buyout_price, posted)
|
||||||
AuxSellReportHTML:SetText(string.format(
|
Aux.log(string.format(
|
||||||
[[
|
'%i auctions of %s x %i posted for %s each)',
|
||||||
<html>
|
posted,
|
||||||
<body>
|
hyperlink,
|
||||||
<h1>Aux Sell Report</h1>
|
stack_size,
|
||||||
<br/>
|
Aux.util.money_string(buyout_price)
|
||||||
<p>
|
|
||||||
%i auctions of %s posted
|
|
||||||
<br/><br/>
|
|
||||||
Stack size: %i
|
|
||||||
<br/>
|
|
||||||
Stack price: %s
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
]],
|
|
||||||
posted,
|
|
||||||
item_name,
|
|
||||||
stack_size,
|
|
||||||
Aux.util.format_money(buyout_price)
|
|
||||||
))
|
))
|
||||||
|
|
||||||
AuxSellReportHTML:SetSpacing(3)
|
|
||||||
|
|
||||||
AuxSellReport:Show()
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,379 +1,63 @@
|
|||||||
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
|
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
|
||||||
|
|
||||||
<Script file="sell.lua"/>
|
<Script file="sell.lua"/>
|
||||||
|
|
||||||
<!-- Frame to handle all core events -->
|
|
||||||
<Frame>
|
|
||||||
<Scripts>
|
|
||||||
</Scripts>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Button name="AuxSellEntryTemplate" virtual="true" hidden="true">
|
|
||||||
<Size><AbsDimension y="16" /></Size>
|
|
||||||
<Frames>
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="120" y="16" /></Size>
|
|
||||||
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="22" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Frames>
|
|
||||||
<Frame name="$parent_UnitPrice" inherits="SmallMoneyFrameTemplate">
|
|
||||||
|
|
||||||
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
SmallMoneyFrame_OnLoad()
|
|
||||||
MoneyFrame_SetType("STATIC")
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="100" y="16"/></Size>
|
|
||||||
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="185" y="-3"/></Offset></Anchor></Anchors>
|
|
||||||
<Layers>
|
|
||||||
<Layer level="BACKGROUND">
|
|
||||||
<FontString name="$parent_Stacks" inherits="GameFontHighlightSmall">
|
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
</Layer>
|
|
||||||
</Layers>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="100" y="16"/></Size>
|
|
||||||
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="340" y="-3"/></Offset></Anchor></Anchors>
|
|
||||||
<Layers>
|
|
||||||
<Layer level="BACKGROUND">
|
|
||||||
<FontString name="$parent_Time" inherits="GameFontHighlightSmall">
|
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
</Layer>
|
|
||||||
</Layers>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="120" y="16"/></Size>
|
|
||||||
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="440" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Frames>
|
|
||||||
<Frame name="$parent_TotalPrice" inherits="SmallMoneyFrameTemplate">
|
|
||||||
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
SmallMoneyFrame_OnLoad()
|
|
||||||
MoneyFrame_SetType("STATIC")
|
|
||||||
</OnLoad>
|
|
||||||
</Scripts>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
|
|
||||||
<HighlightTexture file="Interface\HelpFrame\HelpFrameButton-Highlight" alphaMode="ADD">
|
|
||||||
<TexCoords left="0" right="1.0" top="0.0" bottom="0.6"/>
|
|
||||||
</HighlightTexture>
|
|
||||||
<Scripts>
|
|
||||||
<OnClick>
|
|
||||||
AuxSellEntry_OnClick()
|
|
||||||
</OnClick>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Frame name="AuxSellTemplate" virtual="true" hidden="true">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="694" y="447"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="210" y="0"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
|
|
||||||
|
<Frame name="AuxSellFrame" parent="AuxFrame" hidden="true">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
</Anchors>
|
||||||
<Layers>
|
<Layers>
|
||||||
<Layer level="BACKGROUND">
|
<Layer level="BACKGROUND">
|
||||||
<FontString inherits="GameFontNormal" text="Aux Sell">
|
|
||||||
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="20" y="-18"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxMessage" inherits="GameFontNormal">
|
|
||||||
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="170" y="-100"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxRecommendText" inherits="GameFontNormal" text="Recommended buyout price">
|
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="287" y="-98"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxRecommendBasisText" inherits="GameFontHighlightSmall" text="based on">
|
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="AuxRecommendText"><Offset><AbsDimension x="20" y="-2"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxRecommendPerStackText" inherits="GameFontHighlightSmall" text="per stack">
|
|
||||||
<Anchors><Anchor point="TOPLEFT" relativeTo="AuxRecommendText"><Offset><AbsDimension x="152" y="-28"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxRecommendPerItemText" inherits="GameFontHighlightSmall" text="per item">
|
|
||||||
<Anchors><Anchor point="TOPLEFT" relativeTo="AuxRecommendText"><Offset><AbsDimension x="152" y="-51"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString name="AuxRecommendStaleText" inherits="GameFontRedLarge">
|
<FontString name="AuxRecommendStaleText" inherits="GameFontRedLarge">
|
||||||
<Anchors><Anchor point="TOPLEFT" relativeTo="AuxRecommendText"><Offset><AbsDimension x="430" y="-65"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT" relativeTo="AuxRecommendText"><Offset><AbsDimension x="430" y="-65"/></Offset></Anchor></Anchors>
|
||||||
</FontString>
|
</FontString>
|
||||||
</Layer>
|
</Layer>
|
||||||
<Layer level="ARTWORK">
|
|
||||||
<Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
|
|
||||||
<Size><AbsDimension x="606" y="64"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="216" y="-167"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1"/>
|
|
||||||
</Texture>
|
|
||||||
|
|
||||||
<FontString inherits="GameFontHighlightSmall" text="Unit Price">
|
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="80" y="1"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString inherits="GameFontHighlightSmall" text="Stacks">
|
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="189" y="1"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString inherits="GameFontHighlightSmall" text="Max Time Left">
|
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="341" y="1"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
|
|
||||||
<FontString inherits="GameFontHighlightSmall" text="Total Price">
|
|
||||||
<Anchors><Anchor point="LEFT" relativePoint="LEFT" relativeTo="$parentMiddle"><Offset><AbsDimension x="496" y="1"/></Offset></Anchor></Anchors>
|
|
||||||
</FontString>
|
|
||||||
</Layer>
|
|
||||||
</Layers>
|
</Layers>
|
||||||
<Frames>
|
<Frames>
|
||||||
<Button name="AuxSellItem">
|
<Frame name="AuxSellInventory" inherits="AuxFrameBoxTemplate">
|
||||||
<Size>
|
<Size><AbsDimension x="250" y="326"/></Size>
|
||||||
<AbsDimension x="37" y="37"/>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="5" y="-35"/></Offset></Anchor></Anchors>
|
||||||
</Size>
|
<Scripts>
|
||||||
<Anchors>
|
<OnLoad>
|
||||||
<Anchor point="TOPLEFT">
|
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||||
<Offset>
|
this:SetBackdropColor(0.15, 0.15, 0.15)
|
||||||
<AbsDimension x="28" y="-98"/>
|
getglobal(this:GetName().."Title"):SetText('Inventory')
|
||||||
</Offset>
|
</OnLoad>
|
||||||
</Anchor>
|
</Scripts>
|
||||||
</Anchors>
|
<Frames>
|
||||||
<Layers>
|
<Frame name="$parentListing">
|
||||||
<Layer level="BACKGROUND">
|
<Anchors>
|
||||||
<FontString name="$parentName" inherits="GameFontNormal">
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
<Size>
|
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-40" y="0"/></Offset></Anchor>
|
||||||
<AbsDimension x="124" y="30"/>
|
</Anchors>
|
||||||
</Size>
|
<Scripts>
|
||||||
<Anchors>
|
<OnLoad>
|
||||||
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
|
local config = Aux.sell.inventory_listing_config
|
||||||
<Offset>
|
local sort_order = Aux.util.map(config.sort_order, function(column_order) return { column = config.columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
||||||
<AbsDimension x="5" y="0"/>
|
this.sheet = Aux.sheet.create(this, config.columns, sort_order, config.row_setter, config.on_cell_click, config.on_cell_enter, config.on_cell_leave)
|
||||||
</Offset>
|
</OnLoad>
|
||||||
</Anchor>
|
</Scripts>
|
||||||
</Anchors>
|
</Frame>
|
||||||
</FontString>
|
</Frames>
|
||||||
</Layer>
|
</Frame>
|
||||||
<Layer level="OVERLAY">
|
<frame name="AuxSellParameters" inherits="AuxFrameBoxTemplate">
|
||||||
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
|
<Size><AbsDimension x="210" y="326"/></Size>
|
||||||
<Anchors>
|
<Anchors><Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="AuxSellInventory"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
||||||
<Anchor point="BOTTOMRIGHT">
|
<Scripts>
|
||||||
<Offset>
|
<OnLoad>
|
||||||
<AbsDimension x="-5" y="2"/>
|
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||||
</Offset>
|
this:SetBackdropColor(0.15, 0.15, 0.15)
|
||||||
</Anchor>
|
getglobal(this:GetName().."Title"):SetText('Parameters')
|
||||||
</Anchors>
|
</OnLoad>
|
||||||
</FontString>
|
</Scripts>
|
||||||
</Layer>
|
|
||||||
</Layers>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxSellPostButton" inherits="UIPanelButtonTemplate" text="Post Auctions">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="191" y="20"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="BOTTOMLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="18" y="39"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnClick>
|
|
||||||
Aux.sell.post_auctions()
|
|
||||||
</OnClick>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
<Button>
|
|
||||||
<Size><AbsDimension x="612" y="118"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT"><Offset><AbsDimension x="213" y="-70"/></Offset></Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Layers>
|
|
||||||
<Layer level="BACKGROUND"></Layer>
|
|
||||||
</Layers>
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
this:RegisterEvent("NEW_AUCTION_UPDATE")
|
|
||||||
this:RegisterForDrag("LeftButton")
|
|
||||||
</OnLoad>
|
|
||||||
<OnEvent>
|
|
||||||
if event == "NEW_AUCTION_UPDATE" then
|
|
||||||
Aux_Hilite1:Hide()
|
|
||||||
end
|
|
||||||
</OnEvent>
|
|
||||||
<OnClick>
|
|
||||||
if CursorHasItem() then
|
|
||||||
Aux.sell.set_auction(Aux.last_picked_up.bag, Aux.last_picked_up.slot)
|
|
||||||
else
|
|
||||||
Aux.sell.clear_auction()
|
|
||||||
end
|
|
||||||
</OnClick>
|
|
||||||
<OnReceiveDrag>
|
|
||||||
Aux.sell.set_auction(Aux.last_picked_up.bag, Aux.last_picked_up.slot)
|
|
||||||
ClearCursor()
|
|
||||||
</OnReceiveDrag>
|
|
||||||
<OnEnter>
|
|
||||||
Aux_Hilite1:Show()
|
|
||||||
</OnEnter>
|
|
||||||
<OnLeave>
|
|
||||||
Aux_Hilite1:Hide()
|
|
||||||
</OnLeave>
|
|
||||||
</Scripts>
|
|
||||||
|
|
||||||
<Frames>
|
|
||||||
<Frame name="Aux_Hilite1" hidden="true">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
||||||
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
|
||||||
</Anchors>
|
|
||||||
|
|
||||||
<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
|
|
||||||
<EdgeSize>
|
|
||||||
<AbsValue val="16"/>
|
|
||||||
</EdgeSize>
|
|
||||||
</Backdrop>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button name="AuxRecommendItemTex">
|
|
||||||
<Size><AbsDimension x="37" y="37"/></Size>
|
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="234" y="-87"/></Offset></Anchor></Anchors>
|
|
||||||
<Layers>
|
|
||||||
<Layer level="OVERLAY">
|
|
||||||
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="true">
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="BOTTOMRIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="-5" y="2"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
</FontString>
|
|
||||||
</Layer>
|
|
||||||
</Layers>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="120" y="20"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT" relativeTo="AuxRecommendText">
|
|
||||||
<Offset><AbsDimension x="32" y="-24"/></Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Frames>
|
|
||||||
<Frame name="AuxRecommendPerStackPrice" inherits="SmallMoneyFrameTemplate">
|
|
||||||
<Size><AbsDimension x="120" y="16" /></Size>
|
|
||||||
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Scripts><OnLoad>AuxMoneyFrame_OnLoad()</OnLoad></Scripts>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Frame>
|
|
||||||
<Size><AbsDimension x="120" y="20"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT" relativeTo="AuxRecommendText">
|
|
||||||
<Offset><AbsDimension x="32" y="-46"/></Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Frames>
|
|
||||||
<Frame name="AuxRecommendPerItemPrice" inherits="SmallMoneyFrameTemplate">
|
|
||||||
<Size><AbsDimension x="120" y="16" /></Size>
|
|
||||||
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
<Scripts><OnLoad>AuxMoneyFrame_OnLoad()</OnLoad></Scripts>
|
|
||||||
</Frame>
|
|
||||||
</Frames>
|
|
||||||
</Frame>
|
|
||||||
|
|
||||||
<Button name="AuxSellRefreshButton" inherits="UIPanelButtonTemplate" text="Refresh">
|
|
||||||
<Size><AbsDimension x="126" y="22"/></Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="51" y="14"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<Scripts>
|
|
||||||
<OnClick>
|
|
||||||
AuxSellRefreshButton_OnClick()
|
|
||||||
</OnClick>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<ScrollFrame name="AuxScrollFrame" inherits="FauxScrollFrameTemplate">
|
|
||||||
<Size><AbsDimension x="588" y="194"/></Size>
|
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="210" y="-213"/></Offset></Anchor></Anchors>
|
|
||||||
|
|
||||||
<Scripts>
|
|
||||||
<OnVerticalScroll>
|
|
||||||
FauxScrollFrame_OnVerticalScroll(16, Aux.sell.scrollbar_update)
|
|
||||||
</OnVerticalScroll>
|
|
||||||
<OnShow>
|
|
||||||
<!--Aux.sell.scrollbar_update();-->
|
|
||||||
</OnShow>
|
|
||||||
</Scripts>
|
|
||||||
</ScrollFrame>
|
|
||||||
|
|
||||||
<Button name="AuxSellEntry1" inherits="AuxSellEntryTemplate">
|
|
||||||
<Anchors><Anchor point="TOPLEFT" relativeTo="AuxScrollFrame" relativePoint="TOPLEFT"><Offset><AbsDimension x="8" y="0"/></Offset></Anchor></Anchors>
|
|
||||||
</Button>
|
|
||||||
<Button name="AuxSellEntry2" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry1" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry3" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry2" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry4" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry3" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry5" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry4" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry6" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry5" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry7" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry6" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry8" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry7" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry9" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry8" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry10" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry9" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry11" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry10" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
<Button name="AuxSellEntry12" inherits="AuxSellEntryTemplate"><Anchors><Anchor point="TOPLEFT" relativeTo="AuxSellEntry11" relativePoint="BOTTOMLEFT"/></Anchors></Button>
|
|
||||||
|
|
||||||
<frame name="AuxSellParameters">
|
|
||||||
<Size>
|
|
||||||
<AbsDimension x="200" y="600"/>
|
|
||||||
</Size>
|
|
||||||
<Anchors>
|
|
||||||
<Anchor point="TOPLEFT">
|
|
||||||
<Offset>
|
|
||||||
<AbsDimension x="28" y="-153"/>
|
|
||||||
</Offset>
|
|
||||||
</Anchor>
|
|
||||||
</Anchors>
|
|
||||||
<layers>
|
<layers>
|
||||||
<layer level="BACKGROUND">
|
<layer level="BACKGROUND">
|
||||||
<FontString name="$parentDurationText" inherits="GameFontHighlightSmall" text="Duration">
|
<FontString name="$parentDurationText" inherits="GameFontHighlightSmall" text="Duration">
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="0" y="-49"/>
|
<AbsDimension x="10" y="-100"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
@@ -381,8 +65,57 @@
|
|||||||
</layer>
|
</layer>
|
||||||
</layers>
|
</layers>
|
||||||
<frames>
|
<frames>
|
||||||
|
<Frame name="$parentItem">
|
||||||
|
<Size><AbsDimension x="193" y="37"/></Size>
|
||||||
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="10" y="-10"/></Offset></Anchor></Anchors>
|
||||||
|
<Layers>
|
||||||
|
<Layer level="BORDER">
|
||||||
|
<Texture name="$parentIconTexture">
|
||||||
|
<Size><AbsDimension x="32" y="32"/></Size>
|
||||||
|
<Anchors><Anchor point="LEFT"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor></Anchors>
|
||||||
|
</Texture>
|
||||||
|
<Texture file="Interface\Buttons\UI-Quickslot2">
|
||||||
|
<Size><AbsDimension x="60" y="60"/></Size>
|
||||||
|
<Anchors><Anchor point="CENTER" relativeTo="$parentIconTexture"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
||||||
|
</Texture>
|
||||||
|
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
|
||||||
|
<Anchors><Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture"><Offset><AbsDimension x="-5" y="2"/></Offset></Anchor></Anchors>
|
||||||
|
</FontString>
|
||||||
|
<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentIconTexture"><Offset><AbsDimension x="10" y="0"/></Offset></Anchor>
|
||||||
|
<Anchor point="RIGHT"><Offset><AbsDimension x="-10" y="0"/></Offset></Anchor>
|
||||||
|
<Anchor point="TOP"><Offset><AbsDimension x="0" y="-5"/></Offset></Anchor>
|
||||||
|
<Anchor point="BOTTOM"><Offset><AbsDimension x="0" y="5"/></Offset></Anchor>
|
||||||
|
</Anchors>
|
||||||
|
</FontString>
|
||||||
|
</Layer>
|
||||||
|
<Layer level="BACKGROUND">
|
||||||
|
<Texture name="$parentLeft" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
|
||||||
|
<Size><AbsDimension x="10" y="37"/></Size>
|
||||||
|
<Anchors><Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentIconTexture"><Offset><AbsDimension x="2" y="0"/></Offset></Anchor></Anchors>
|
||||||
|
<TexCoords left="0" right="0.078125" top="0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
<Texture name="$parentRight" file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
|
||||||
|
<Size><AbsDimension x="10" y="37"/></Size>
|
||||||
|
<Anchors><Anchor point="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<TexCoords left="0.75" right="0.828125" top="0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
<Texture file="Interface\AuctionFrame\UI-AuctionItemNameFrame">
|
||||||
|
<Size><AbsDimension x="10" y="37"/></Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<TexCoords left="0.078125" right="0.75" top="0" bottom="1.0"/>
|
||||||
|
</Texture>
|
||||||
|
</Layer>
|
||||||
|
</Layers>
|
||||||
|
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
|
||||||
|
</Frame>
|
||||||
<Slider name="AuxSellStackSizeSlider" inherits="AuxSliderTemplate">
|
<Slider name="AuxSellStackSizeSlider" inherits="AuxSliderTemplate">
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="10" y="-50"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnValueChanged>
|
<OnValueChanged>
|
||||||
Aux.sell.quantity_update()
|
Aux.sell.quantity_update()
|
||||||
@@ -390,7 +123,7 @@
|
|||||||
</Scripts>
|
</Scripts>
|
||||||
</Slider>
|
</Slider>
|
||||||
<Slider name="AuxSellStackCountSlider" inherits="AuxSliderTemplate">
|
<Slider name="AuxSellStackCountSlider" inherits="AuxSliderTemplate">
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="-30"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="10" y="-80"/></Offset></Anchor></Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnValueChanged>
|
<OnValueChanged>
|
||||||
Aux.sell.quantity_update()
|
Aux.sell.quantity_update()
|
||||||
@@ -490,7 +223,7 @@
|
|||||||
</Scripts>
|
</Scripts>
|
||||||
</CheckButton>
|
</CheckButton>
|
||||||
<Frame name="$parentStartPrice" inherits="MoneyInputFrameTemplate">
|
<Frame name="$parentStartPrice" inherits="MoneyInputFrameTemplate">
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="2" y="-94"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="12" y="-140"/></Offset></Anchor></Anchors>
|
||||||
<layers>
|
<layers>
|
||||||
<Layer level="ARTWORK">
|
<Layer level="ARTWORK">
|
||||||
<FontString name="$parentText" inherits="GameFontHighlightSmall" text="STARTING_PRICE">
|
<FontString name="$parentText" inherits="GameFontHighlightSmall" text="STARTING_PRICE">
|
||||||
@@ -505,7 +238,7 @@
|
|||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
<Frame name="$parentBuyoutPrice" inherits="MoneyInputFrameTemplate">
|
<Frame name="$parentBuyoutPrice" inherits="MoneyInputFrameTemplate">
|
||||||
<Anchors><Anchor point="TOPLEFT" relativeTo="AuctionsBuyoutText" relativePoint="BOTTOMLEFT"><Offset><AbsDimension x="2" y="-2"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="12" y="-170"/></Offset></Anchor></Anchors>
|
||||||
<layers>
|
<layers>
|
||||||
<Layer level="OVERLAY">
|
<Layer level="OVERLAY">
|
||||||
<FontString name="$parentText" inherits="GameFontHighlightSmall" text="Buyout Price |cff808080(optional)|r">
|
<FontString name="$parentText" inherits="GameFontHighlightSmall" text="Buyout Price |cff808080(optional)|r">
|
||||||
@@ -524,35 +257,64 @@
|
|||||||
</Frame>
|
</Frame>
|
||||||
</frames>
|
</frames>
|
||||||
</frame>
|
</frame>
|
||||||
<Frame name="AuxSellReport" frameStrata="FULLSCREEN_DIALOG" toplevel="true" parent="UIParent" enableMouse="true" hidden="true">
|
<Frame name="AuxSellAuctions" inherits="AuxFrameBoxTemplate">
|
||||||
<Size><AbsDimension x="400" y="180" /></Size>
|
<Size><AbsDimension x="361" y="326"/></Size>
|
||||||
<Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="-90"/></Offset></Anchor></Anchors>
|
<Anchors><Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="AuxSellParameters"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor></Anchors>
|
||||||
|
<Scripts>
|
||||||
<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
|
<OnLoad>
|
||||||
<BackgroundInsets><AbsInset left="11" right="12" top="12" bottom="11"/></BackgroundInsets>
|
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||||
<TileSize><AbsValue val="32"/></TileSize>
|
this:SetBackdropColor(0.15, 0.15, 0.15)
|
||||||
<EdgeSize><AbsValue val="32"/></EdgeSize>
|
getglobal(this:GetName().."Title"):SetText('Existing Auctions')
|
||||||
</Backdrop>
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
<Frames>
|
<Frames>
|
||||||
<SimpleHTML name="AuxSellReportHTML">
|
<Frame name="$parentListing">
|
||||||
<Size><AbsDimension x="420" y="1" /></Size>
|
<Anchors>
|
||||||
<Anchors><Anchor point="TOPLEFT"><Offset><AbsDimension x="30" y="-30"/></Offset></Anchor></Anchors>
|
<Anchor point="TOPLEFT"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
|
||||||
<FontString inherits="GameFontHighlightSmall"/>
|
<Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-40" y="0"/></Offset></Anchor>
|
||||||
<FontStringHeader1 inherits="GameFontNormal"/>
|
</Anchors>
|
||||||
</SimpleHTML>
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
<Button inherits="UIPanelButtonTemplate" text="Close">
|
local config = Aux.sell.auction_listing_config
|
||||||
<Size><AbsDimension x="100" y="22"/> </Size>
|
local sort_order = Aux.util.map(config.sort_order, function(column_order) return { column = config.columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
|
||||||
<Anchors><Anchor point="BOTTOMRIGHT"><Offset><AbsDimension x="-20" y="15"/></Offset></Anchor></Anchors>
|
this.sheet = Aux.sheet.create(this, config.columns, sort_order, config.row_setter, config.on_cell_click, config.on_cell_enter, config.on_cell_leave)
|
||||||
<Scripts>
|
</OnLoad>
|
||||||
<OnClick>
|
</Scripts>
|
||||||
AuxSellReport:Hide()
|
</Frame>
|
||||||
</OnClick>
|
</Frames>
|
||||||
</Scripts>
|
</Frame>
|
||||||
</Button>
|
<Button name="AuxSellRefreshButton" inherits="UIPanelButtonTemplate" text="Refresh">
|
||||||
</Frames>
|
<Size><AbsDimension x="90" y="26"/></Size>
|
||||||
</Frame>
|
<Anchors>
|
||||||
|
<Anchor point="BOTTOMRIGHT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="-10" y="10"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnClick>
|
||||||
|
AuxSellRefreshButton_OnClick()
|
||||||
|
</OnClick>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
|
<Button name="AuxSellPostButton" inherits="UIPanelButtonTemplate" text="Post Auctions">
|
||||||
|
<Size>
|
||||||
|
<AbsDimension x="120" y="26"/>
|
||||||
|
</Size>
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="AuxSellRefreshButton">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="-10" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
<Scripts>
|
||||||
|
<OnClick>
|
||||||
|
Aux.sell.post_auctions()
|
||||||
|
</OnClick>
|
||||||
|
</Scripts>
|
||||||
|
</Button>
|
||||||
</Frames>
|
</Frames>
|
||||||
</Frame>
|
</Frame>
|
||||||
</Ui>
|
</Ui>
|
||||||
|
|||||||
@@ -9,6 +9,20 @@ local merge, copy_array
|
|||||||
function Aux.util.pass()
|
function Aux.util.pass()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Aux.util.without_sound(f)
|
||||||
|
local orig = UIErrorsFrame.AddMessage
|
||||||
|
UIErrorsFrame.AddMessage = Aux.util.pass
|
||||||
|
f()
|
||||||
|
UIErrorsFrame.AddMessage = orig
|
||||||
|
end
|
||||||
|
|
||||||
|
function Aux.util.without_errors(f)
|
||||||
|
local orig = GetCVar('MasterSoundEffects')
|
||||||
|
SetCVar('MasterSoundEffects', false)
|
||||||
|
f()
|
||||||
|
SetCVar('MasterSoundEffects', orig)
|
||||||
|
end
|
||||||
|
|
||||||
function Aux.util.iter(array)
|
function Aux.util.iter(array)
|
||||||
local with_index = ipairs(array)
|
local with_index = ipairs(array)
|
||||||
return function()
|
return function()
|
||||||
|
|||||||
Reference in New Issue
Block a user