summaryrefslogtreecommitdiff
path: root/Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua')
-rw-r--r--Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua170
1 files changed, 170 insertions, 0 deletions
diff --git a/Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua b/Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua
new file mode 100644
index 0000000..59487d8
--- /dev/null
+++ b/Data/BuiltIn/Libraries/lua-addons/addons/Rhombus/defs.lua
@@ -0,0 +1,170 @@
+--[[Copyright © 2014-2015, trv
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Rhombus nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL trv BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.--]]
+
+defaults={
+ x_offset = 0,
+ y_offset = 0,
+}
+
+_defaults = config.load(defaults)
+
+display_text = texts.new('', {
+ pos = {
+ x = 95,
+ y = 0,
+ },
+ bg = {
+ visible = false,
+ },
+ flags = {
+ bold = true,
+ draggable = false,
+ },
+ text = {
+ font = 'Consolas',
+ size = 10,
+ alpha = 255,
+ red = 255,
+ green = 255,
+ blue = 255,
+ },
+})
+
+menu_icon = texts.new('v', {
+ pos = {
+ x = -12,
+ y = -22,
+ },
+ bg = {
+ visible = false,
+ },
+ flags = {
+ bold = true,
+ draggable = false,
+ },
+ text = {
+ font = 'Wingdings',
+ size = 100,
+ alpha = 100,
+ red = 255,
+ blue = 255,
+ green = 255,
+ stroke = {
+ width = 1,
+ red = 0,
+ blue = 0,
+ green = 0,
+ alpha = 255,
+ },
+ },
+})
+
+addendum_white = {[14]="Poisona",[15]="Paralyna",[16]="Blindna",[17]="Silena",[18]="Stona",[19]="Viruna",[20]="Cursna",
+ [143]="Erase",[13]="Raise II",[140]="Raise III",[141]="Reraise II",[142]="Reraise III",[135]="Reraise"}
+
+addendum_black = {[253]="Sleep",[259]="Sleep II",[260]="Dispel",[162]="Stone IV",[163]="Stone V",[167]="Thunder IV",
+ [168]="Thunder V",[157]="Aero IV",[158]="Aero V",[152]="Blizzard IV",[153]="Blizzard V",[147]="Fire IV",[148]="Fire V",
+ [172]="Water IV",[173]="Water V",[255]="Break"}
+
+unbridled_learning_set = {['Thunderbolt']=true,['Harden Shell']=true,['Absolute Terror']=true,
+ ['Gates of Hades']=true,['Tourbillion']=true,['Pyric Bulwark']=true,['Bilgestorm']=true,
+ ['Bloodrake']=true,['Droning Whirlwind']=true,['Carcharian Verve']=true,['Blistering Roar']=true,
+ ['Uproot']=true,['Crashing Thunder']=true,['Polar Roar']=true}
+
+not_a_spell = S{
+ 'Stratagems', 'Blood Pact: Rage', 'Sambas', 'Waltzes', 'Steps', 'Flourishes I', 'Flourishes II', 'Flourishes III',
+ 'Blood Pact: Ward', 'Phantom Roll', 'Rune Enchantment', 'Jigs', 'Ready'
+}
+
+is_icon = {
+ W = true,
+ R = false,
+ G = false,
+ B = false,
+ Y = false,
+}
+
+letter_to_n = {
+ 'R',
+ 'G',
+ 'B',
+ 'Y'
+}
+
+n_to_color = {
+ {255,111,111},
+ {111,255,111},
+ {111,111,255},
+ {255,255,111}
+}
+
+category_to_resources = {
+ 'spells',
+ 'weapon_skills',
+ 'job_abilities',
+ 'job_abilities',
+}
+
+custom_menu_colors = {
+ Fire = '255,133,133',
+ Earth = '255,255,133',
+ Water = '177,168,255',
+ Wind = '111,255,111',
+ Ice = '168,251,255',
+ Thunder = '250,156,255',
+ Light = '255,255,255',
+ Darkness = '100,100,100',
+}
+
+refresh_ma_when = {[401]=true,[402]=true,[416]=true,[485]=true,}
+
+player_info = {}
+menu_layer_record = L{}
+menu_history = {}
+menu_list = L{}
+menu_start = 1
+is_menu_open = false
+last_menu_open = {}
+font_height_est = 16
+selector_pos = {x=0,y=0}
+drag_and_drop = false
+mouse_safety = false
+is_shift_modified = false
+
+windower.prim.create('menu_backdrop')
+windower.prim.set_color('menu_backdrop',200,0,0,0)
+windower.prim.set_visibility('menu_backdrop',false)
+windower.prim.set_size('menu_backdrop',150,12 * font_height_est)
+
+windower.prim.create('selector_rectangle')
+windower.prim.set_color('selector_rectangle',100,255,255,255)
+windower.prim.set_visibility('selector_rectangle',false)
+windower.prim.set_size('selector_rectangle',150,font_height_est)
+
+windower.prim.create('scroll_bar')
+windower.prim.set_color('scroll_bar',200,255,255,255)
+windower.prim.set_visibility('scroll_bar',false)
+windower.prim.set_size('scroll_bar',10,1)