mise à jour data des modif client v3

This commit is contained in:
deed 2016-10-14 13:11:34 +02:00
parent 7646c5b5bd
commit 72de8b044f
33 changed files with 2520 additions and 215 deletions

View file

@ -1116,7 +1116,7 @@ function userComponentManager:export(list, refX, refY, refZ)
messageBox(i18n.get("uiR2EDInvalidName"))
return
end
if string.find(form.ComponentFileName, '\.lua', -4) == nil then
if string.find(form.ComponentFileName, '.lua', -4) == nil then
form.ComponentFileName = form.ComponentFileName .. ".lua"
end
local refPosition = form.RefPosition

View file

@ -140,7 +140,8 @@ end
function assert(cond)
if not cond then
rawDebugInfo(colorTag(255, 0, 255) .. "ASSERTION FAILED !! ")
-- rawDebugInfo(colorTag(255, 0, 255) .. "ASSERTION FAILED !! ")
rawDebugInfo("@{FOFF}ASSERTION FAILED !! ")
dumpCallStack(2);
error("")
end

View file

@ -371,7 +371,7 @@ local registerFeature = function ()
--------------------
convertToWidgetValue =
function(value)
local result = math.mod(math.floor(180 * value / math.pi), 360)
local result = math.fmod(math.floor(180 * value / math.pi), 360)
if result < 0 then result = 360 + result end
return result
end,

View file

@ -78,7 +78,7 @@ feature.Components.EasterEgg =
function(value)
local angle = value
if angle == nil then angle = 0 end
local result = math.mod(math.floor(180 * angle / math.pi), 360)
local result = math.fmod(math.floor(180 * angle / math.pi), 360)
if result < 0 then result = 360 + result end
return result
end,

View file

@ -1679,7 +1679,7 @@ Logic.translateChatSequences = function (context, hlComponent, behavior, rtNpcGr
event.Name = "activity_sequence_changed"
table.insert(context.RtAct.Events, event)
local rtInitChatStep = r2.Translator.createAction("code", "oldChatStepVar = -1;\n" .. Logic.chatStepVar .." = 0;\n()setTimer(1, " ..Logic.chatTimerId .. ")\;\n")
local rtInitChatStep = r2.Translator.createAction("code", "oldChatStepVar = -1;\n" .. Logic.chatStepVar .." = 0;\n()setTimer(1, " ..Logic.chatTimerId .. ");\n")
rtInitChatStep.Name = "init_chat_step"
table.insert(context.RtAct.Actions, rtInitChatStep)
table.insert(event.ActionsId, rtInitChatStep.Id)

View file

@ -318,7 +318,7 @@
on_change_params="r2.events:initFilterMenu()" color_text="255 255 0 255" />
<ctrl style="button_ok" id="add" x="10" y="0" posref="BR BL" posparent="filterMenu"
text_y="-2" onclick_l="lua" params_l="r2.events:refreshEvents()" hardtext="uiR2EDRefreshEvents"
text_y="0" onclick_l="lua" params_l="r2.events:refreshEvents()" hardtext="uiR2EDRefreshEvents"
fontsize="10" text_color_normal="255 255 255 170" />
<instance template="sequence_elements_template" id="sequence_elts" x="0" y="-10" h="-45" posparent="filterMenu" posref="BL TL"
@ -463,7 +463,7 @@
</group>
<ctrl style="button_ok" id="add" active="false" x="0" y="-8" wmin="130" posref="BL TL" posparent="actions_list_gr"
text_y="-2" onclick_l="lua" params_l="r2.events:newActionUI()" hardtext="uiR2EDAddAction" fontsize="10" text_color_normal="255 255 255 170" />
text_y="0" onclick_l="lua" params_l="r2.events:newActionUI()" hardtext="uiR2EDAddAction" fontsize="10" text_color_normal="255 255 255 170" />
</group>
@ -488,7 +488,7 @@
</group>
<ctrl style="button_ok" id="add" x="0" y="0" wmin="130" posref="BL TL" posparent="conditions_gr"
text_y="-2" onclick_l="lua" params_l="r2.events:newConditionUI()" hardtext="uiR2EDAddCondition" fontsize="10" text_color_normal="255 255 255 170" />
text_y="0" onclick_l="lua" params_l="r2.events:newConditionUI()" hardtext="uiR2EDAddCondition" fontsize="10" text_color_normal="255 255 255 170" />
</group>
@ -500,7 +500,7 @@
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
<ctrl style="button_ok" id="advanced" x="-3" y="3" posref="BR BR" posparent="parent"
text_y="-2" onclick_l="lua" params_l="r2.events:advancedEditor('true')" hardtext="Advanced..." fontsize="12" text_color_normal="255 255 255 150" />
text_y="0" onclick_l="lua" params_l="r2.events:advancedEditor('true')" hardtext="Advanced..." fontsize="12" text_color_normal="255 255 255 150" />
</group>

View file

@ -28,6 +28,19 @@ function forEach(table, fn)
end
end
------------------------------------------------------------------------------------------------------------
-- whatever
table.setn = function(table, n)
assert(table)
local mt = getmetatable(table)
if mt ~= nil then
if mt.__next ~= nil then
table.Size = n
end
end
end
------------------------------------------------------------------------------------------------------------
-- extension to table library : remove all content of a table without deleting the table object
function table.clear(tbl)
@ -175,6 +188,17 @@ function strify(str)
return [["]] .. tostring(str) .. [["]]
end
-------------------------------------------------------------------------------------------------
-- enclose a string by double quotes
function strifyXml(str)
local strxml = string.gsub(tostring(str), ">", "&gt;")
strxml = string.gsub(strxml, "<", "&lt;")
strxml = string.gsub(strxml, "&", "&amp;")
strxml = string.gsub(strxml, "'", "&apos;")
strxml = string.gsub(strxml, '"', "&quot;")
return [["]] .. strxml .. [["]]
end
------------------------------------------------------------------------------------------------------------
-- snap a position to ground, returning the z snapped coordinate
function r2:snapZToGround(x, y)
@ -251,26 +275,37 @@ end
assert(table.getn ~= nil) -- default lib should have been opened
-- assert(table.getn ~= nil) -- default lib should have been opened
--if oldTableGetnFunction == nil then
-- oldTableGetnFunction = table.getn
--end
--
--table.getn = function(table)
-- assert(table)
-- local mt = getmetatable(table)
-- if mt ~= nil then
-- if mt.__next ~= nil then
-- return table.Size
-- end
-- end
-- return oldTableGetnFunction(table)
--end
if oldTableGetnFunction == nil then
oldTableGetnFunction = table.getn
end
table.getn = function(table)
assert(table)
local mt = getmetatable(table)
if mt ~= nil then
if mt.__next ~= nil then
return table.Size
return table.Size
end
end
return oldTableGetnFunction(table)
return #table
end
-- redefine the hardcoded 'pairs' function to use the redefined 'next'
-- hardcoded version uses the C version of next, not the lua one if it has been redefined

View file

@ -541,7 +541,7 @@ Translator.translateEventHandlers = function(context, hlNpc, eventHandlers, rtNp
while k do
local caller = nil
if devMode then
caller = function (...) arg[1](arg[2], arg[3], arg[4], arg[5]) return true end
caller = function (...) local arg = {...} arg[1](arg[2], arg[3], arg[4], arg[5]) return true end
else
caller = pcall
@ -898,6 +898,7 @@ end
-- Returns a RtNpcEventHandlerAction if the action is allowed
--first parameter: action type
Translator.createAction = function(...)
local arg = {...}
local debug=config.R2EDExtendedDebug
local function header(toto)
@ -2774,6 +2775,7 @@ end
--third param : GroupsByName
--then, parameters
Translator.createEvent = function(...)
local arg = {...}
local event = r2.newComponent("RtNpcEventHandler")
local eventType = arg[1]
event.Event = eventType

View file

@ -196,7 +196,7 @@
<group id="sequence_content" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<ctrl style="button_ok" id="new_button" x="0" y="-10" posref="TL TL" posparent="parent"
text_y="-2" onclick_l="lua" params_l="#new_elt" hardtext="#new_elt_text" />
text_y="0" onclick_l="lua" params_l="#new_elt" hardtext="#new_elt_text" />
<group id="mi_group" posparent="new_button" posref="BL BL" x="0" y="0"
sizeparent="parent" sizeref="w5" w="0" h="0" />
@ -333,7 +333,7 @@
seq_color="" over_seq_color="" repeat_seq="" right_seq="" left_seq="" on_change="" >
<ctrl style="button_ok" id="new_sequence_button" posref="TL TL" x="30" y="-15"
text_y="-2" onclick_l="lua" params_l="#new_seq" hardtext="#new_seq_text" />
text_y="0" onclick_l="lua" params_l="#new_seq" hardtext="#new_seq_text" />
<group id="sequence_menu" x="30" y="-40" sizeref="wh" w="-60" h="-90" posparent="parent" posref="TL TL" >
<group type="tab" id="sequence_tabs" hide_out_tabs="true" child_resize_w="true"

View file

@ -635,7 +635,7 @@ function CharTracking:onDraw()
self.LastRefreshTime = nltime.getLocalTime() / 1000
--self:getWindow():find("refreshText").active = false
else
local waitText = i18n.get("uiRAP_WaitChars" .. math.mod(os.time(), 3))
local waitText = i18n.get("uiRAP_WaitChars" .. math.fmod(os.time(), 3))
self:setInfoMessage(waitText)
--local refreshText = self:getWindow():find("refreshText")
--if not self.ListReceived then

View file

@ -832,7 +832,7 @@ function r2:onActChanged(previousAct, currentAct)
-- update the select bar
r2.SelectBar:touch()
if r2:isScenarioUpdating() == 1 then
if r2:isScenarioUpdating() then
return
end
@ -1030,6 +1030,7 @@ end
--------------------
--------------------
function r2:updateAnimBarActions(...)
local arg = {...}
-- forward to the real anim bar
r2.ui.AnimBar:updateActions(arg)
end

View file

@ -328,7 +328,7 @@ end
local function saveScenarioOnChange(formInstance)
r2.print(formInstance.Name)
local name = string.gsub(formInstance.Name, "[\\\/\:\*\?\"\<\>\|]", "_")
local name = string.gsub(formInstance.Name, "[\\/:*?\"<>|]", "_")
if name ~= formInstance.Name then
fromInstance.Name = name
formInstance.Modified = true

View file

@ -613,7 +613,7 @@ function PlayerTracking:onDraw()
local timeInSec = nltime.getLocalTime() / 1000
if self.WaitingList then
local waitText = i18n.get("uiRAP_WaitMsg" .. math.mod(os.time(), 3))
local waitText = i18n.get("uiRAP_WaitMsg" .. math.fmod(os.time(), 3))
if not self.ListReceived then
self:setInfoMessage(waitText)
waitTextColor.A = 127 + 127 * (0.5 + 0.5 * math.cos(6 * timeInSec))

View file

@ -47,13 +47,13 @@ function r2:buildEditBox(prop, textRef, entryType, multiLine, maxNumChars, onCha
bg_texture="grey_40.tga"
onchange="lua" onchange_params="getUICaller():setupDisplayText(); getUICaller():find('edit_text'):updateCoords(); getUICaller():getEnclosingContainer().Env.updateSize()"
onenter="lua" on_focus_lost="lua"]] ..
[[ id= ]] .. strify(prop.Name) ..
[[ text_ref = ]] .. strify(textRef) ..
[[ entry_type = ]] .. strify(entryType) ..
[[ multi_line = ]] .. strify(multiLine) ..
[[ max_num_chars = ]] .. strify(maxNumChars) ..
[[ params = ]] .. strify(onChangeAction) ..
[[ on_focus_lost_params = ]] .. strify(onFocusLostAction) ..
[[ id= ]] .. strifyXml(prop.Name) ..
[[ text_ref = ]] .. strifyXml(textRef) ..
[[ entry_type = ]] .. strifyXml(entryType) ..
[[ multi_line = ]] .. strifyXml(multiLine) ..
[[ max_num_chars = ]] .. strifyXml(maxNumChars) ..
[[ params = ]] .. strifyXml(onChangeAction) ..
[[ on_focus_lost_params = ]] .. strifyXml(onFocusLostAction) ..
"/>"
return result
end
@ -73,13 +73,13 @@ end
-- bg_texture="grey_40.tga"
-- onchange="lua" onchange_params="getUICaller():setupDisplayText(); getUICaller():find('edit_text'):updateCoords(); getUICaller():getEnclosingContainer().Env.updateSize()"
-- onenter="lua" on_focus_lost="lua"]] ..
-- [[ id= ]] .. strify(prop.Name) ..
-- [[ text_ref = ]] .. strify(textRef) ..
-- [[ entry_type = ]] .. strify(entryType) ..
-- [[ multi_line = ]] .. strify(multiLine) ..
-- [[ max_num_chars = ]] .. strify(maxNumChars) ..
-- [[ params = ]] .. strify(onChangeAction) ..
-- [[ on_focus_lost_params = ]] .. strify(onChangeAction) ..
-- [[ id= ]] .. strifyXml(prop.Name) ..
-- [[ text_ref = ]] .. strifyXml(textRef) ..
-- [[ entry_type = ]] .. strifyXml(entryType) ..
-- [[ multi_line = ]] .. strifyXml(multiLine) ..
-- [[ max_num_chars = ]] .. strifyXml(maxNumChars) ..
-- [[ params = ]] .. strifyXml(onChangeAction) ..
-- [[ on_focus_lost_params = ]] .. strifyXml(onChangeAction) ..
-- [[ />
--
--
@ -1043,7 +1043,7 @@ r2.WidgetStyles.Number =
width1 = tmp
end
local part0 = [[<TD width=]] .. strify(width0) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="80 80 80 127" height="0" align="left" valign="middle" id= "l_]] .. prop.Name .. [[" > ]]
local part0 = [[<TD width=]] .. strifyXml(width0) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="80 80 80 127" height="0" align="left" valign="middle" id= "l_]] .. prop.Name .. [[" > ]]
local tooltipTextId, tooltipTextIdFound = buildPropTooltipName(className, prop.Name)
@ -1051,7 +1051,7 @@ r2.WidgetStyles.Number =
tooltip_parent="win"
tooltip_posref="auto"
instant_help="true"
tooltip=]] .. strify(tooltipTextId) .. ">"
tooltip=]] .. strifyXml(tooltipTextId) .. ">"
part0 = part0 .. buildCoverAllButton(prop)
local color = "255 255 255 255"
@ -1066,10 +1066,10 @@ r2.WidgetStyles.Number =
end
part0 = part0 .. [[ <view type="text" y="-2" sizeref="w" over_extend_view_text="true" over_extend_parent_rect="true"]] ..
[[ id = ]] .. strify(prop.Name .. "_Caption") ..
[[ hardtext = ]] .. strify(hardText) ..
[[ color = ]] .. strify(color) ..
[[ global_color=]] .. strify(globalColor) .. [[ fontsize="12" shadow="true" auto_clamp="true"/> ]]
[[ id = ]] .. strifyXml(prop.Name .. "_Caption") ..
[[ hardtext = ]] .. strifyXml(hardText) ..
[[ color = ]] .. strifyXml(color) ..
[[ global_color=]] .. strifyXml(globalColor) .. [[ fontsize="12" shadow="true" auto_clamp="true"/> ]]
part0 = part0 .. "</group>"
part0 = part0 .. "</TD>"
@ -1086,7 +1086,7 @@ r2.WidgetStyles.Number =
--
local widgetXml =
string.format([[
<group posref="TL TL" x="4" y="3" sizeref="w" w="-4" child_resize_h="true" child_resize_hmargin="3" id= ]] .. strify(prop.Name) .. ">" .. [[
<group posref="TL TL" x="4" y="3" sizeref="w" w="-4" child_resize_h="true" child_resize_hmargin="3" id= ]] .. strifyXml(prop.Name) .. ">" .. [[
<view type="bitmap" id="bk" posref="BL BL" scale="true" y="4" sizeref="w" h="2" texture="W_line_hor2.tga" />
<ctrl type="scroll" id="c" posparent="bk" posref="MM MM" x="0" y="-1" sizeref="w" h="12"
vertical="false" align="L" tracksize="12"
@ -1136,14 +1136,14 @@ r2.WidgetStyles.Number =
local result =
[[
<group type="combo_box" sizeref="w" w="-2" x="2" y="0" child_resize_h="true" child_resize_hmargin="10" linked_to_db="false" posref="TL TL" id=]]
.. strify(prop.Name) ..
.. strifyXml(prop.Name) ..
string.format([[ on_change="lua" on_change_params="if getUICaller().parent.Env.Locked ~= true then r2:requestSetObjectProperty('%s', getUICaller().selection) end"]], prop.Name) ..
">"
result = result .. [[<instance template="combo_box_def1" />]]
-- append enumerated values
for k, v in pairs(prop.Enum) do
result = result .. [[<combo_text name="]] .. tostring(v) .. [[" />]]
result = result .. [[<combo_text name=]] .. strifyXml(tostring(v)) .. [[ />]]
end
result = result .. "</group>"
return result, setter
@ -1201,10 +1201,10 @@ function r2:createPropertyXmlTable(props, className, posparent, posref, x, y, wi
result = result .. value
end
add([[<group type="table" sizeparent="parent"]] ..
[[ posparent= ]] .. strify(posparent) ..
[[ posref= ]] .. strify(posref) ..
[[ x= ]] .. strify(x) ..
[[ y= ]] .. strify(y) ..
[[ posparent= ]] .. strifyXml(posparent) ..
[[ posref= ]] .. strifyXml(posref) ..
[[ x= ]] .. strifyXml(x) ..
[[ y= ]] .. strifyXml(y) ..
[[ id="prop_table" sizeref="w" width="100%" border="0" bgcolor="0 0 0 255"
cellspacing="1"
cellpadding="0"
@ -1249,18 +1249,18 @@ function r2:createPropertyXmlTable(props, className, posparent, posref, x, y, wi
local part0
if not captionXmlDesc then
part0 = [[<TD width=]] .. strify(width0) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="80 80 80 127" height="0" align="left" valign="middle" id= "l_]] .. prop.Name .. [[" > ]]
part0 = [[<TD width=]] .. strifyXml(width0) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="80 80 80 127" height="0" align="left" valign="middle" id= "l_]] .. prop.Name .. [[" > ]]
part0 = part0 .. [[<group id="caption_group" sizeref="w" child_resize_h="true" posref="ML ML"
tooltip_parent="win"
tooltip_posref="auto"
instant_help="true"
tooltip=]] .. strify(tooltipTextId) .. ">"
tooltip=]] .. strifyXml(tooltipTextId) .. ">"
part0 = part0 .. [[ <view type="text" y="-2" sizeref="w" over_extend_view_text="true" over_extend_parent_rect="true"]] ..
[[ id = ]] .. strify(prop.Name .. "_Caption") ..
[[ hardtext = ]] .. strify(hardText) ..
[[ color = ]] .. strify(color) ..
[[ global_color=]] .. strify(globalColor) .. [[ fontsize="12" shadow="true" auto_clamp="true"/> ]]
[[ id = ]] .. strifyXml(prop.Name .. "_Caption") ..
[[ hardtext = ]] .. strifyXml(hardText) ..
[[ color = ]] .. strifyXml(color) ..
[[ global_color=]] .. strifyXml(globalColor) .. [[ fontsize="12" shadow="true" auto_clamp="true"/> ]]
part0 = part0 .. "</group>"
part0 = part0 .. "</TD>"
else
@ -1268,13 +1268,13 @@ function r2:createPropertyXmlTable(props, className, posparent, posref, x, y, wi
end
-- build the widget
local part1 = [[<TD width=]] .. strify(width1) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="64 64 64 127" height="0" align="left" valign="middle" id= "r_]] .. prop.Name .. [[" > ]]
local part1 = [[<TD width=]] .. strifyXml(width1) .. [[ ignore_max_width="true" ignore_min_width="true" bgcolor="64 64 64 127" height="0" align="left" valign="middle" id= "r_]] .. prop.Name .. [[" > ]]
part1 = part1 .. [[<group id="widget_group" sizeref="w" child_resize_h="true" posref="ML ML"
tooltip_parent="win"
tooltip_posref="auto"
tooltip_posref_alt="TL TR"
instant_help="true"
tooltip=]] .. strify(tooltipTextId) .. ">"
tooltip=]] .. strifyXml(tooltipTextId) .. ">"
part1 = part1 .. widgetXmlDesc .. [[</group></TD>]]
if invertWidget then
@ -1397,15 +1397,15 @@ function r2:buildPropRolloutXml(caption, id, posparent, posref, props, className
-- add the rollout bar
if not isForm then
result = result ..
[[ <instance template="rollout_bar" caption=]] .. strify(caption) ..
[[ color=]] .. strify(color) ..
[[ global_color=]] .. strify(globalColor) ..
[[ <instance template="rollout_bar" caption=]] .. strifyXml(caption) ..
[[ color=]] .. strifyXml(color) ..
[[ global_color=]] .. strifyXml(globalColor) ..
[[ content_name="prop_table"/> ]]
else
result = result ..
[[ <instance template="form_bar" caption=]] .. strify(caption) ..
[[ color=]] .. strify(color) ..
[[ global_color=]] .. strify(globalColor) ..
[[ <instance template="form_bar" caption=]] .. strifyXml(caption) ..
[[ color=]] .. strifyXml(color) ..
[[ global_color=]] .. strifyXml(globalColor) ..
[[ /> ]]
end
@ -1475,9 +1475,9 @@ function r2:buildPropertySheetXml(class, className, id, title, isForm)
if isForm then -- for forms, closing the form is equivalent to clicking on 'cancel'
add(' resizer="true" ')
local w = defaulting(class.Width, 500)
add(' pop_min_w=' .. strify(w))
add(' pop_max_w=' .. strify(w))
add(' w=' .. strify(w))
add(' pop_min_w=' .. strifyXml(w))
add(' pop_max_w=' .. strifyXml(w))
add(' w=' .. strifyXml(w))
local cancelCode =
[[ local form = getUICaller()
if form.Env.Choice == nil then
@ -1518,7 +1518,7 @@ function r2:buildPropertySheetXml(class, className, id, title, isForm)
add([[id=]] .. strify(id) .. [[
add([[id=]] .. strifyXml(id) .. [[
>]])
@ -1647,7 +1647,7 @@ function r2:buildPropertySheetXml(class, className, id, title, isForm)
</group> <!-- enclosing -->
</group> <!-- content -->
</group>
<tree node=]] .. strify(id) .. [[ >
<tree node=]] .. strifyXml(id) .. [[ >
</tree>
]])

View file

@ -36,7 +36,7 @@ UnitTest.testLoadAnimationScenarioUi = function()
end
local filename = form.LoadScenario_Name
if string.find(filename, '\.r2', -3) == nil then
if string.find(filename, '.r2', -3) == nil then
local ui = r2:getForm("LoadScenario")
ui.active = true
@ -134,12 +134,12 @@ UnitTest.testLoadScenarioUi = function()
local ucName = ucstring()
ucName:fromUtf8(form.LoadScenario_Name)
local filename = tostring(ucName)
if string.find(filename, '\.r2', -3) == nil then
if string.find(filename, '.r2', -3) == nil then
messageBox(i18n.get("uiR2EDLoadScenario_InvalidFileName"))
return
end
-- if string.find(filename, '\.r2', -3) == nil then
-- if string.find(filename, '.r2', -3) == nil then
-- filename = form.Name .. ".r2"
-- end
@ -206,7 +206,7 @@ function UnitTest.saveScenario(name, overwrite)
messageBox(i18n.get("uiR2EDInvalidName"))
return
end
if string.find(name, '\.r2', -3) == nil then
if string.find(name, '.r2', -3) == nil then
name = name .. ".r2"
end
-- update scenario name with the new name
@ -1103,8 +1103,8 @@ end
function t5()
local toto = "&ezr_çà'_\\)d //:1' 2 éééà'..)à\/:*?\"<>|à)@4 58ftgsfdg\"\/:*?\"<>|"
toto = string.gsub(toto, "[\\\/\:\*\?\"\<\>\|]", "_")
local toto = "&ezr_çà'_\\)d //:1' 2 éééà'..)à/:*?\"<>|à)@4 58ftgsfdg\"/:*?\"<>|"
toto = string.gsub(toto, "[\\/:*?\"<>|]", "_")
end

View file

@ -77,7 +77,7 @@
<group type="menu" id="r2ed_base_menu_look"
options="context_menu_back"
text_y="-2"
text_y="0"
color="255 255 255 255"
fontsize="16"
shadow="true"
@ -1783,9 +1783,9 @@ text_y="-2"
<group id="#id" posparent="#posparent" posref="#posref" w="200" child_resize_h="true"
x="#x" y="#y">
<ctrl style="button_ok" id="random" posref="TL TL" text_y="-2" onclick_l="#onclick_random"
<ctrl style="button_ok" id="random" posref="TL TL" text_y="0" onclick_l="#onclick_random"
params_l="#onclick_random_param" hardtext="uiR2EdRandom" tooltip="#tooltip_ok" />
<ctrl style="button_ok" x="13" posparent="random" text_y="-2" posref ="TR TL" onclick_l="#onclick_add_list"
<ctrl style="button_ok" x="13" posparent="random" text_y="0" posref ="TR TL" onclick_l="#onclick_add_list"
params_l="#onclick_add_list_param" hardtext="uiR2EdManageSetsShort" />
</group>
@ -1981,7 +1981,7 @@ text_y="-2"
</scene3d>
<ctrl style="button_ok" id="change_view" x="-10" y="10" posparent="char3d" posref="BR BR"
text_y="-2" onclick_l="lua" params_l="r2:changeView()" hardtext="uiR2EDChangeView" tooltip="" />
text_y="0" onclick_l="lua" params_l="r2:changeView()" hardtext="uiR2EDChangeView" tooltip="" />
</group>
@ -2131,7 +2131,7 @@ text_y="-2"
</group>
<ctrl style="button_ok" id="create_new" x="0" y="-2" posparent="options_list" posref="BR TR"
text_y="-2" onclick_l="" params_l="" hardtext="uiR2EdCreateNew" tooltip="" />
text_y="0" onclick_l="" params_l="" hardtext="uiR2EdCreateNew" tooltip="" />
</group>
-->
</group>
@ -2209,11 +2209,11 @@ text_y="-2"
<!-- equipment random button -->
<ctrl style="button_ok" id="equ_random" x="110" y="-20" posparent="arms_guard" posref="BL TL"
text_y="-2" onclick_l="lua" params_l="r2:randomEquipment()" hardtext="uiR2EdRandomEquipment" />
text_y="0" onclick_l="lua" params_l="r2:randomEquipment()" hardtext="uiR2EdRandomEquipment" />
<!-- color random button -->
<ctrl style="button_ok" id="color_random" x="30" y="0" posparent="equ_random" posref="TR TL"
text_y="-2" onclick_l="lua" params_l="r2:randomColor()" hardtext="uiR2EdRandomColor" />
text_y="0" onclick_l="lua" params_l="r2:randomColor()" hardtext="uiR2EdRandomColor" />
<!-- sets -->
<instance template="h_label_combo_box" id="equipment_sets"
@ -2222,7 +2222,7 @@ text_y="-2"
<!-- save set button -->
<ctrl style="button_ok" id="save_set" x="29" y="0" posparent="equipment_sets" posref="BR BL"
text_y="-2" hardtext="uiR2EdManageSets" onclick_l="proc" params_l="add_equipment_active" />
text_y="0" hardtext="uiR2EdManageSets" onclick_l="proc" params_l="add_equipment_active" />
</group>
@ -2230,7 +2230,7 @@ text_y="-2"
<!-- COMBAT MODE button
<group id="combat_mode" sizeref="w" w="0" h="16" x="0" y="-15" posparent="armour" posref="BL TL">
<ctrl style="button_ok" id="combat_mode_button" x="10" posparent="parent" posref="TL TL"
text_y="-2" onclick_l="proc" params_l="combat_mode_active" hardtext="uiR2EdCombatMode" tooltip="" />
text_y="0" onclick_l="proc" params_l="combat_mode_active" hardtext="uiR2EdCombatMode" tooltip="" />
</group>-->
<!-- ****** -->
@ -2509,7 +2509,7 @@ text_y="-2"
</group>
<ctrl style="button_ok" id="preview" x="11" y="0" posparent="menu" posref="BL TL"
text_y="-2" onclick_l="lua" params_l="r2:preview()" hardtext="uiR2EdPreview" />
text_y="0" onclick_l="lua" params_l="r2:preview()" hardtext="uiR2EdPreview" />
</group>
</group>
@ -2628,7 +2628,7 @@ text_y="-2"
<!-- Add list button -->
<ctrl style="button_ok" id="add_list" x="18" y="0" posparent="weight" posref="BR BL"
text_y="-2" onclick_l="" params_l="" hardtext="uiR2EdAddList" tooltip="" />
text_y="0" onclick_l="" params_l="" hardtext="uiR2EdAddList" tooltip="" />
</group>
</group>
@ -2638,15 +2638,15 @@ text_y="-2"
<!-- Ok -->
<ctrl style="button_ok" id="ok" x="0" y="0" posparent="parent" posref="TL TL"
text_y="-2" onclick_l="leave_modal" params_l="" hardtext=" OK " tooltip="" />
text_y="0" onclick_l="leave_modal" params_l="" hardtext=" OK " tooltip="" />
<!-- Cancel -->
<ctrl style="button_ok" id="cancel" x="110" y="0" posparent="ok" posref="TR TL"
text_y="-2" onclick_l="leave_modal" params_l="" hardtext=" CANCEL " tooltip="" />
text_y="0" onclick_l="leave_modal" params_l="" hardtext=" CANCEL " tooltip="" />
<!-- Update -->
<ctrl style="button_ok" id="update" x="110" y="0" posparent="cancel" posref="TR TL"
text_y="-2" onclick_l="leave_modal" params_l="" hardtext=" UPDATE " tooltip="" />
text_y="0" onclick_l="leave_modal" params_l="" hardtext=" UPDATE " tooltip="" />
</group>
</group>
@ -2680,11 +2680,11 @@ text_y="-2"
<!-- Add -->
<ctrl style="button_ok" id="add" x="0" y="-2" posparent="new_sets" posref="BL TL"
text_y="-2" onclick_l="lua" params_l="#add_params" hardtext="uiR2EdAdd" />
text_y="0" onclick_l="lua" params_l="#add_params" hardtext="uiR2EdAdd" />
<!-- Random sets -->
<ctrl style="button_ok" id="random_sets" x="40" y="-20" posparent="add" posref="BL TL"
text_y="-2" onclick_l="lua" params_l="#random_params" hardtext="uiR2EdRandomSet" />
text_y="0" onclick_l="lua" params_l="#random_params" hardtext="uiR2EdRandomSet" />
<!-- Update sets -->
<instance template="label_combo_box" id="update_sets" posparent="random_sets" posref="BL TL"
@ -2692,11 +2692,11 @@ text_y="-2"
<!-- Update -->
<ctrl style="button_ok" id="update" x="0" y="-2" posparent="update_sets" posref="BL TL"
text_y="-2" onclick_l="lua" params_l="#update_params" hardtext="uiR2EdUpdate" />
text_y="0" onclick_l="lua" params_l="#update_params" hardtext="uiR2EdUpdate" />
<!-- Remove button -->
<ctrl style="button_ok" id="remove" x="28" y="0" posparent="update" posref="TR TL"
text_y="-2" onclick_l="lua" params_l="#remove_params" hardtext="uiR2EdRemove" tooltip="" />
text_y="0" onclick_l="lua" params_l="#remove_params" hardtext="uiR2EdRemove" tooltip="" />
</group>
@ -3072,7 +3072,7 @@ text_y="-2"
/>
<view type="text" id="text_custom" posparent="custom_bbox_enabled" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2showMessageAgain" auto_clamp="true"/>
<ctrl style="button_ok" x="0" y="6" posref="BM BM" text_y="-2"
<ctrl style="button_ok" x="0" y="6" posref="BM BM" text_y="0"
onclick_l="proc" params_l="help_close" hardtext="uittOK" />
</group>

View file

@ -12,7 +12,7 @@
child_resize_h="true" child_resize_hmargin="0" >
<ctrl type="text_button" button_type="toggle_button" id="eco_button" x="10" y="0" posref="TL TL"
text_y="-2" onclick_l="lua" params_l="#params_l" hardtext="#hardtext" wmin="#wmin"
text_y="0" onclick_l="lua" params_l="#params_l" hardtext="#hardtext" wmin="#wmin"
tx_normal="#tx_ecosystem" tx_pushed="#tx_ecosystem_pushed" tx_over="#tx_ecosystem"
fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
@ -256,7 +256,7 @@
<group id="previous_location_gr" posparent="parent" posref="TL TL" x="10" y="-5" sizeref="wh" w="-20" h="-15" >
<ctrl type="text_button" button_type="toggle_button" id="new_previous_title" x="0" y="0" posref="TL TL"
text_y="-2" hardtext="Choose new or previous location" wmin="170"
text_y="0" hardtext="Choose new or previous location" wmin="170"
tx_normal="Quit_button_normal" tx_pushed="Quit_button_normal" tx_over="Quit_button_normal"
fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
@ -347,7 +347,7 @@
<group id="choose_island" posparent="parent" posref="TL TL" x="10" y="-5" sizeref="w" w="-20" h="203" >
<ctrl type="text_button" button_type="toggle_button" id="choose_island_title" x="0" y="0" posref="TL TL"
text_y="-2" hardtext="Choose island" wmin="170"
text_y="0" hardtext="Choose island" wmin="170"
tx_normal="Quit_button_normal" tx_pushed="Quit_button_normal" tx_over="Quit_button_normal"
fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
@ -456,7 +456,7 @@
<group id="island_images" x="190" y="-218" w="-200" sizeref="wh" h="-218" posref="TL TL" >
<ctrl type="text_button" button_type="toggle_button" id="card_title" x="0" y="0" posref="TL TL"
text_y="-2" hardtext="Island zoom" wmin="170"
text_y="0" hardtext="Island zoom" wmin="170"
tx_normal="Quit_button_normal" tx_pushed="Quit_button_normal" tx_over="Quit_button_normal"
fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
@ -535,7 +535,7 @@
<group id="island_season" x="10" y="-218" w="170" sizeref="h" h="-258" posref="TL TL" >
<ctrl type="text_button" button_type="toggle_button" id="season_title" x="0" y="0" posref="TL TL"
text_y="-2" hardtext="uiR2EDSeason" wmin="170"
text_y="0" hardtext="uiR2EDSeason" wmin="170"
tx_normal="Quit_button_normal" tx_pushed="Quit_button_normal" tx_over="Quit_button_normal"
fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"

View file

@ -103,7 +103,7 @@
<group id="#id" w="#w" h="#h" posparent="#posparent" posref="#posref" x="#x" y="#y" >
<ctrl type="text_button" button_type="toggle_button" id="button" x="0" y="0" posref="TL TL" posparent="parent"
text_y="-2" hardtext="#hardtext" wmin="40" h="10"
text_y="0" hardtext="#hardtext" wmin="40" h="10"
tx_normal="Quit_button_pushed" tx_pushed="Quit_button_pushed" tx_over="Quit_button_pushed"
fontsize="12" shadow="true" case_mode="%case_upper" wmargin="8" global_color="false" force_text_over="true"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
@ -1052,7 +1052,7 @@
<ctrl style="button_ok" id="ok" active="true" x="0" y="-10" posref="BR TR" posparent="label_gr"
text_y="-2" onclick_l="lua" params_l="r2:showFilteredScenarios()" hardtext="OK" fontsize="10" />
text_y="0" onclick_l="lua" params_l="r2:showFilteredScenarios()" hardtext="OK" fontsize="10" />
</group>
</group>

View file

@ -0,0 +1,192 @@
-- global
AppZone = {
id = "ui:interface:appzone",
homeuri = "?action=appzone_toolbar",
launchuri = "?action=launch_app",
addappuri = "?action=list_user_apps",
mode = "h_bar",
imagesize = 26
}
-- use client.cfg value when available
local uri getClientCfg("AppZoneUrl")
if uri == nil or uri == '' then
uri = 'http://app.ryzom.com/'
end
AppZone.homeuri = uri .. AppZone.homeuri
AppZone.launchuri = uri .. AppZone.launchuri
AppZone.addappuri = uri .. AppZone.addappuri
function AppZone:getRoot()
return getUI(self.id)
end
function AppZone:onButtonHome()
local webig = getUI("ui:interface:webig")
webig:find("html").url = self.addappuri
webig.active = true
end
function AppZone:calculateSize(count, spacer, mode)
local w, h
if mode == "h_bar" then
-- icon=32, space=2+2
w = count * self.imagesize + spacer * 15
w = w + 55 + 10 + 20
h = self.imagesize + 2
elseif mode == "h_box" then
w = count * self.imagesize
w = w + 20
h = self.imagesize + 2
h = h * spacer
h = h + 15
elseif mode == "v_bar" then
-- icon=32, space=2+2
h = count * self.imagesize + spacer * 15
h = h + 20 + 20 + 12
w = self.imagesize + 2 + 18
else
h = count * self.imagesize
h = h + 20 + 25
w = self.imagesize + 2
w = w * spacer
w = w + 16
end
local ui = getUI("ui:interface")
if w > ui.w then
w = ui.w
end
if h > ui.h then
h = ui.h
end
return w, h
end
function AppZone:setElementCount(count,spacer,m)
self.mode = m
local root = self:getRoot()
local content = root:find("content")
local html = root:find("html")
local button_toggle = root:find("toggle_mode")
local button_reload = root:find("browse_reload")
local button_home = root:find("browse_home")
local w, h = self:calculateSize(count, spacer, self.mode)
root.h = h
root.w = w
content.w = w
content.h = h
-- set position of buttons
if self.mode == "h_bar" then
-- button_toggle.posref = "BL BL"
button_toggle.x = 2
button_toggle.y = 0
-- button_reload.posref = "TL BL"
html.x = 15
html.y = 0
button_reload.x = -25
button_reload.y = -25
-- button_home.posref = "BR BR"
button_home.x = 0
button_home.y = -3 + 5
elseif self.mode == "h_box" then
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = -25
button_reload.y = -4 - 20
-- button_home.posref = "BR BR"
button_home.x = 0
button_home.y = -3 + h - 18
elseif self.mode == "v_bar" then
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = 0
button_reload.y = -4
-- button_home.posref = "BR BR"
button_home.x = 4 - 7
button_home.y = -3
else
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = -25
button_reload.y = -4 - 20
-- button_home.posref = "BR BR"
button_home.x = 0 - w + 54 + 12
button_home.y = -3
end
end
function AppZone:setMode(m)
self.mode = m
self:reload()
end
function AppZone:setActive(s)
self:getRoot().active = s
end
function AppZone:launchApp(appid, appwin, appurl)
if not appwin then
if string.match(appid, "^[0-9]+$") then
appwin = "app" .. tostring(appid)
else
appwin = "webig"
end
end
if not appurl then
appurl = self.launchuri .. "&appid=" .. tostring(appid)
end
if WebBrowser then
WebBrowser:openWindow(appwin, appurl)
else
-- fallback if WebBrowser not present
local webig = getUI("ui:interface:webig")
webig:find("html").url = appurl;
webig.active = true
end
end
function AppZone:reload()
local url = self.homeuri
url = url .. "&mode=" .. tostring(self.mode)
local html = self:getRoot():find("html")
html.url = url
end
-- slash command: /appzone <cmd>
function AppZone:handle(cmd)
if cmd == 'show' then
self:setActive(true)
elseif cmd == 'hide' then
self:setActive(false)
elseif cmd == 'reload' then
self:reload()
elseif cmd == 'list' then
self:onButtonHome()
else
self:launchApp(cmd)
end
end

View file

@ -0,0 +1,257 @@
<?xml version="1.0"?>
<interface_config>
<root id="interface"
x="0"
y="0"
w="800"
h="600"
active="true" />
<!-- default: active, h_bar -->
<variable entry="UI:VARIABLES:ISACTIVE:APPZONE"
type="sint32"
value="1" />
<variable entry="UI:SAVE:APPZONE:MODE"
type="sint32"
value="1" />
<!-- load lua after variable are setup -->
<lua file="appzone.lua" />
<lua file="webbrowser.lua" />
<proc id="appzone_proc_active">
<action handler="set"
params="dblink=UI:VARIABLES:ISACTIVE:APPZONE|value=1" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_deactive">
<action handler="set"
params="dblink=UI:VARIABLES:ISACTIVE:APPZONE|value=0" />
</proc>
<proc id="appzone_proc_mode_set">
<action handler="set"
params="dblink=UI:SAVE:APPZONE:MODE|value=@0" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_mode_inc">
<action handler="set"
params="dblink=UI:SAVE:APPZONE:MODE|value=add(@UI:SAVE:APPZONE:MODE,1)" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_mode">
<action handler="set"
cond="le(@UI:SAVE:APPZONE:MODE,0)"
params="dblink=UI:SAVE:APPZONE:MODE|value=1" />
<action handler="set"
cond="ge(@UI:SAVE:APPZONE:MODE,5)"
params="dblink=UI:SAVE:APPZONE:MODE|value=1" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,1)"
params="AppZone:setMode('h_bar')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,2)"
params="AppZone:setMode('h_box')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,3)"
params="AppZone:setMode('v_bar')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,4)"
params="AppZone:setMode('v_box')" />
</proc>
<group type="menu"
id="appzone_menu"
extends="base_menu_with_color">
<action id="settings"
name="uiBrowseHome"
handler="lua"
params="AppZone:onButtonHome()" />
<action id="reload"
name="uiBrowseRefresh"
handler="lua"
params="AppZone:reload()" />
<action id="hide"
name="uiHide"
handler="lua"
params="AppZone:setActive(false)" />
<separator />
</group>
<group id="appzone"
type="container"
x="0"
y="0"
w="200"
h="26"
posref="MM MM"
min_w="26"
min_h="26"
max_w="1600"
max_h="1600"
pop_max_w="1600"
pop_max_h="1600"
title=""
global_color="true"
global_color_over="true"
header_active="false"
right_button="false"
options="layer0_pad"
movable="true"
active="true"
opened="true"
openable="false"
resizer="false"
on_active="proc"
on_active_params="appzone_proc_active"
on_deactive="proc"
on_deactive_params="appzone_proc_deactive"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:appzone_menu">
<group id="header_closed"
x="0"
y="0"
w="0"
h="0"
posref="TL TL" />
<group id="header_opened"
x="0"
y="0"
w="0"
h="0"
wmin="5"
sizeref="w"
posref="TL TL" />
<group id="content"
x="0"
y="0"
w="0"
h="26"
posref="TL TL">
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="toggle_mode"
posref="BL BL"
x="2"
y="0"
tx_normal="tb_mode.tga"
tx_pushed="tb_mode.tga"
tooltip="uiMk_mode"
onclick_l="proc"
params_l="appzone_proc_mode_inc" />
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="browse_home"
posref="BR BR"
x="0"
y="-3"
tx_normal="r2_palette_components.tga"
tx_pushed="r2_palette_components.tga"
tooltip="uittBrowseHome"
onclick_l="lua"
params_l="AppZone:onButtonHome()" />
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="browse_reload"
posref="TL BL"
posparent="browse_home"
x="0"
y="-4"
tx_normal="r2ed_icon_rotate.tga"
tx_pushed="r2ed_icon_rotate.tga"
tooltip="uiBrowseRefresh"
onclick_l="lua"
params_l="AppZone:reload()" />
<group id="html"
type="webig_html"
posref="TL TL"
url=""
title_prefix=""
sizeref="wh"
x="15"
y="0"
w="0"
h="0"
background_color="0 0 0 0"
error_color="255 240 48 255"
link_color="240 155 100 255"
text_color="210 210 210 255"
h1_color="255 255 255 255"
h2_color="255 255 255 255"
h3_color="255 255 255 255"
h4_color="255 255 255 255"
h5_color="255 255 255 255"
h6_color="255 255 255 255"
text_font_size="10"
h1_font_size="16"
h2_font_size="14"
h3_font_size="13"
h4_font_size="12"
h5_font_size="11"
h6_font_size="11"
paragraph_begin_space="12"
multi_line_space_factor="0.25"
td_begin_space="0"
li_begin_space="4"
ul_begin_space="12"
li_indent="-10"
ul_indent="30"
checkbox_bitmap_normal="patch_off.tga"
checkbox_bitmap_pushed="patch_on.tga"
checkbox_bitmap_over=""
background_bitmap_view=""
home=""
browse_next_time="false"
form_text_area_group="edit_box_widget_multiline">
<group id="black"
posref="BR BR"
sizeref="hw"
w="0"
h="0"
inherit_gc_alpha="true" />
<view type="bitmap"
id="black2"
posparent="black"
posref="MM MM"
sizeref="wh"
w="0"
h="0"
inherit_gc_alpha="true"
scale="true"
texture="blank.tga"
global_color="false" />
<group type="list"
id="text_list"
fontsize="9"
posref="TL TL"
posparent="black"
x="0"
y="0"
space="0"
sizeref="hw"
w="-4"
h="0"
maxelements="2000" />
<ctrl style="skin_scroll"
id="scroll_bar" />
</group>
</group>
</group>
<tree node="appzone" />
<command name="appzone"
action="lua"
params="AppZone:handle('$')" />
</interface_config>

View file

@ -8,7 +8,7 @@
<variable entry="UI:SAVE:RADARZOOM"
type="sint64"
value="1" />
<variable entry="UI:TEMP:VOLUME"
<variable entry="UI:SAVE:MP3_VOLUME"
type="sint64"
value="255" />
<!--******************-->
@ -25,23 +25,38 @@
<group type="menu"
id="mp3_player_menu"
extends="base_menu_with_color"></group>
<template name="playlist_song" keep="true" id="" posparent="parent" posref="TL TL" w="206" h="20" line_maxw="160" index="0">
<group id="#id" w="#w" child_resize_h="true" posparent="#posparent" posref="#posref" group_onclick_r="" group_params_r="">
<ctrl type="button" id="btn" button_type="toggle_button" sizeref="wh" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true"
color="255 255 255 0" col_pushed="255 255 255 0" col_over="255 255 255 90"
global_color_normal="true" global_color_pushed="true" global_color_over="true"
ondblclick_l="music_player" params_dblclick_l="song=#index" />
<view type="text" id="title" posref="ML ML" x="0" line_maxw="#line_maxw" fontsize="8" shadow="true" multi_line="true" multi_line_space="0" />
<view type="text" id="duration" posref="MR MR" x="0" fontsize="8" shadow="true" color="255 255 255 128" />
</group>
</template>
<group type="modal"
id="playlist"
posparent="mp3_player"
posref="BM TM"
w="234"
h="256"
max_h="250"
child_resize_h="true"
child_resize_hmargin="10"
options="layer0"
mouse_pos="false"
escapable="false"
exit_click_out="false"
escapable="true"
exit_click_out="true"
on_active=""
on_active_params="">
<view type="text"
id="title"
posref="TL TL"
x="4"
y="-4"
x="8"
y="-8"
hardtext="uiPlaylistTitle"
shadow="true"
color="255 255 255 255"
@ -50,17 +65,36 @@
id="close"
button_type="push_button"
posref="TR TR"
x="-4"
y="-4"
x="-8"
y="-8"
tx_normal="w_win_close.tga"
tx_pushed="w_win_close.tga"
tx_over="W_button_14_over.tga"
onclick_l="leave_modal"
params_l="" />
<ctrl style="text_button_header"
button_type="push_button"
id="refresh"
posparent="close"
posref="ML MR"
x="-4"
y="0"
hardtext="uiPlaylistRefresh"
onclick_l="music_player"
params_l="play_songs" />
<group id="content" x="8" y="-24" over="true" sizeref="w" posref="TL TL" child_resize_h="true" child_resize_hmargin="4">
<group id="songs" x="10" y="0" sizeref="w" posref="TL TL" child_resize_h="true" max_h="215">
<group id="list" type="list" x="0" y="0" posref="TL TL" />
</group>
<ctrl style="skin_scroll" id="sv" posref="TL TL" target="songs" />
</group>
</group>
<link expr="@UI:TEMP:VOLUME"
<tree node="playlist" />
<link expr="@UI:SAVE:MP3_VOLUME"
action="music_player"
params="volume=@UI:TEMP:VOLUME" />
params="volume=@UI:SAVE:MP3_VOLUME" />
<group id="mp3_player"
type="container_windows"
w="206"
@ -199,7 +233,7 @@
min="0"
max="255"
tracksize="8"
value="UI:TEMP:VOLUME"
value="UI:SAVE:MP3_VOLUME"
tx_topright="w_scroll_R.tga"
tx_middle="w_scroll_l123_m.tga"
tx_bottomleft="w_scroll_L.tga"
@ -223,12 +257,12 @@
button_type="push_button"
posref="MM MM"
posparent="slot5"
tx_normal="mp3_button_open.tga"
tx_pushed="mp3_button_open.tga"
tx_normal="mp3_button_list.tga"
tx_pushed="mp3_button_list.tga"
tx_over="mp3_button_over.tga"
onclick_l="music_player"
params_l="play_songs"
tooltip="uiMP3Open" />
onclick_l="enter_modal"
params_l="group=ui:interface:playlist"
tooltip="uiMP3Playlist" />
<!--
<ctrl type="button" id="but_list" button_type="push_button" posref="MM MM" posparent="slot6"
tx_normal="mp3_button_list.tga" tx_pushed="mp3_button_list.tga" tx_over="mp3_button_over.tga"
@ -265,7 +299,7 @@
fontsize="10"
line_maxw="182"
shadow="true"
hardtext="No File..." />
hardtext="uiNoFiles" />
</group>
</group>
<tree node="mp3_player" />
@ -567,7 +601,7 @@
<!-- compass clock -->
<group id="clock"
posref="TL TL"
w="50"
w="70"
h="16"
x="4"
y="-4">
@ -645,7 +679,7 @@
id="dist"
posref="BM BM"
x="0"
y="0"
y="2"
hardtext="uiRadarZoom0"
shadow="true"
color="255 255 255 255"
@ -694,7 +728,7 @@
id="range"
posref="BM MM"
x="0"
y="16"
y="20"
hardtext="uiRadarZoom0"
shadow="true"
color="255 255 255 255"
@ -748,8 +782,8 @@
posref="BM BM"
x="0"
y="26"
w="44"
h="18" />
w="46"
h="25" />
</group>
<tree node="compass" />
<link expr="switch(@UI:SAVE:RADARZOOM, 'uiRadarZoom0', 'uiRadarZoom1', 'uiRadarZoom2', 'uiRadarZoom3')"
@ -811,7 +845,7 @@
id="upload"
posref="TL TL"
x="0"
y="-20"
y="-18"
color="255 255 255 255"
shadow="true"
fontsize="10"
@ -823,7 +857,7 @@
posref="BL TL"
posparent="upload"
x="0"
y="-2"
y="0"
color="255 255 255 255"
shadow="true"
fontsize="10"
@ -835,7 +869,7 @@
posref="BL TL"
posparent="download"
x="0"
y="-2"
y="0"
color="255 255 255 255"
shadow="true"
fontsize="10"
@ -847,7 +881,7 @@
posref="BL TL"
posparent="ping"
x="0"
y="-2"
y="0"
color="255 255 255 255"
shadow="true"
fontsize="10"
@ -870,7 +904,7 @@
id="up_title"
posref="TL TL"
x="0"
y="-4"
y="-2"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -879,7 +913,7 @@
id="down_title"
posref="TL TL"
x="0"
y="-20"
y="-18"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -888,7 +922,7 @@
id="ping_title"
posref="TL TL"
x="0"
y="-36"
y="-34"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -897,7 +931,7 @@
id="packet_title"
posref="TL TL"
x="0"
y="-52"
y="-50"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -906,7 +940,7 @@
id="server_title"
posref="TL TL"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -915,7 +949,7 @@
id="upload"
posref="TR TR"
x="0"
y="-4"
y="-2"
color="255 255 255 255"
shadow="true"
fontsize="11"
@ -926,7 +960,7 @@
id="download"
posref="TR TR"
x="0"
y="-20"
y="-18"
color="255 255 255 255"
shadow="true"
fontsize="11"
@ -937,7 +971,7 @@
id="ping"
posref="TR TR"
x="0"
y="-36"
y="-34"
color="255 255 255 255"
shadow="true"
fontsize="11"
@ -948,7 +982,7 @@
id="packet"
posref="TR TR"
x="0"
y="-52"
y="-50"
color="255 255 255 255"
shadow="true"
fontsize="11"
@ -959,7 +993,7 @@
id="server0"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -969,7 +1003,7 @@
id="server1"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -979,7 +1013,7 @@
id="server2"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -989,7 +1023,7 @@
id="server3"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -999,7 +1033,7 @@
id="server4"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -1009,7 +1043,7 @@
id="server5"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -1019,7 +1053,7 @@
id="server6"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -1029,7 +1063,7 @@
id="server7"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -1039,7 +1073,7 @@
id="server8"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"
@ -1049,7 +1083,7 @@
id="server9"
posref="TR TR"
x="0"
y="-68"
y="-66"
color="255 255 255 255"
fontsize="11"
shadow="true"

View file

@ -20,7 +20,7 @@
shadow_color_grayed="0 0 0 255"
highlight_over="255 255 255 128"
formatted="true"
case_mode="%case_first_word_letter_up"
case_mode="%case_normal"
>
<!-- Put First NPC interaction, sorted by usage frequency-->

View file

@ -3,36 +3,36 @@
------------------------------------------------------------------------------------------------------------
-- create the game namespace without reseting if already created in an other file.
if (help==nil) then
help= {};
help = {}
end
------------------------------------------------------------------------------------------------------------
--
function help:closeCSBrowserHeader()
local ui = getUI('ui:interface:cs_browser');
local ui = getUI('ui:interface:cs_browser')
-- save size
ui_cs_browser_h = ui.h;
ui_cs_browser_w = ui.w;
ui_cs_browser_h = ui.h
ui_cs_browser_w = ui.w
-- reduce window size
ui.pop_min_h = 32;
ui.h = 0;
ui.w = 216;
ui.pop_min_h = 32
ui.h = 0
ui.w = 216
end
------------------------------------------------------------------------------------------------------------
--
function help:openCSBrowserHeader()
local ui = getUI('ui:interface:cs_browser');
ui.pop_min_h = 96;
local ui = getUI('ui:interface:cs_browser')
ui.pop_min_h = 96
-- set size from saved values
if (ui_cs_browser_h ~= nil) then
ui.h = ui_cs_browser_h;
ui.h = ui_cs_browser_h
end
if (ui_cs_browser_w ~= nil) then
ui.w = ui_cs_browser_w;
ui.w = ui_cs_browser_w
end
end

View file

@ -10,7 +10,7 @@ end
------------------------------------------------------------------------------------------------------------
-- called when server send an invitaion we receive a text id containing the string to display (invitor name)
function game:onTeamInvation(textID)
local ui = getUI('ui:interface:join_team_proposal');
ui.content.inside.invitor_name.textid = textID;
ui.active = true;
@ -20,7 +20,7 @@ function game:onTeamInvation(textID)
end
------------------------------------------------------------------------------------------------------------
--
--
function game:teamInvitationAccept()
local ui = getUI('ui:interface:join_team_proposal');
@ -29,7 +29,7 @@ function game:teamInvitationAccept()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:teamInvitationRefuse()
local ui = getUI('ui:interface:join_team_proposal');
@ -38,7 +38,7 @@ function game:teamInvitationRefuse()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:switchChatTab(dbEntry)
local db= 'UI:SAVE:ISENABLED:' .. dbEntry;
local val= getDbProp(db);
@ -51,13 +51,13 @@ function game:switchChatTab(dbEntry)
end
------------------------------------------------------------------------------------------------------------
--
--
function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param)
for i=0,9 do
-- Get key shortcut
local text = i18n.get('uiTalkMemMsg0' .. i);
local key = runExpr( "getKey('talk_message','0" .. i .. "',1)" );
if (key ~= nil and key ~= '') then
key = ' @{T25}@{2F2F}(' .. key .. ')';
text = concatUCString(text, key);
@ -67,11 +67,11 @@ function game:updateEmoteMenu(prop, tooltip, tooltip_pushed, name, param)
local uiQC= getUI("ui:interface:user_chat_emote_menu:quick_chat:" .. "qc" .. i);
uiQC.uc_hardtext_format= text;
end
end
------------------------------------------------------------------------------------------------------------
--
--
if (ui_free_chat_h == nil) then
ui_free_chat_h = {}
end
@ -81,14 +81,14 @@ if (ui_free_chat_w == nil) then
end
------------------------------------------------------------------------------------------------------------
--
--
function game:closeTellHeader(uiID)
local ui = getUI('ui:interface:' .. uiID);
-- save size
ui_free_chat_h[uiID] = ui.h;
ui_free_chat_w[uiID] = ui.w;
-- reduce window size
ui.pop_min_h = 32;
ui.h = 0;
@ -96,7 +96,7 @@ function game:closeTellHeader(uiID)
end
------------------------------------------------------------------------------------------------------------
--
--
function game:openTellHeader(uiID)
local ui = getUI('ui:interface:' .. uiID);
ui.pop_min_h = 96;
@ -105,7 +105,7 @@ function game:openTellHeader(uiID)
if (ui_free_chat_h[uiID] ~= nil) then
ui.h = ui_free_chat_h[uiID];
end
if (ui_free_chat_w[uiID] ~= nil) then
ui.w = ui_free_chat_w[uiID];
end
@ -127,12 +127,12 @@ local function levelToForceRegion(level)
return 6
else
return math.floor(level / 50) + 2
end
end
end
end
local function levelToLevelForce(level)
return math.floor(math.fmod(level, 50) * 5 / 50) + 1
end
return math.floor(math.fmod(level, 50) * 5 / 50) + 1
end
@ -186,7 +186,7 @@ end
local function twIsTargetPlayer()
if config.Local == 1 then
return twTargetPlayer
else
else
return isTargetPlayer()
end
end
@ -195,7 +195,7 @@ end
local function twIsPlayerInPVPMode()
if config.Local == 1 then
return twPlayerInPVPMode
else
else
return isPlayerInPVPMode()
end
end
@ -204,7 +204,7 @@ end
local function twIsTargetInPVPMode()
if config.Local == 1 then
return twTargetInPVPMode
else
else
return isTargetInPVPMode()
end
end
@ -219,17 +219,16 @@ end
function game:updateTargetConsiderUI()
--debugInfo("Updating consider widget")
local targetWindow = getUI("ui:interface:target")
--
local targetWindow = getUI("ui:interface:target")
--
local wgTargetSlotForce = targetWindow:find("slot_force")
local wgTargetLevel = targetWindow:find("target_level")
local wgImpossible = targetWindow:find("impossible")
local wgSlotRing = targetWindow:find("slot_ring")
local wgToolTip = targetWindow:find("target_tooltip")
local wgPvPTag = targetWindow:find("pvp_tags")
local wgHeader = targetWindow:find("header_opened")
local wgPvPTag = targetWindow:find("pvp_tags")
local wgHeader = targetWindow:find("header_opened")
wgTargetSlotForce.active = true
wgImpossible.active = true
@ -238,7 +237,7 @@ function game:updateTargetConsiderUI()
wgTargetSlotForce.active = false
wgTargetLevel.active = false
wgImpossible.active = false
wgSlotRing.active = false
wgSlotRing.active = false
if (isTargetUser() and twIsPlayerInPVPMode()) then
wgToolTip.tooltip = ""
wgPvPTag.active = true
@ -289,14 +288,14 @@ function game:updateTargetConsiderUI()
local impossible = (twGetTargetLevel() - twGetPlayerLevel() > maxDiffLevel)
wgSlotRing.active = false
if impossible then
-- targeted object is too hard too beat, display a skull
wgTargetLevel.active = false
wgImpossible.y = -5
wgImpossible.color = "255 50 50 255"
else
-- player can see the level of the targeted creature
-- player can see the level of the targeted creature
wgTargetLevel.active = true
wgImpossible.y = 6
wgTargetLevel.hardtext = tostring(twGetTargetLevel())
@ -310,7 +309,7 @@ function game:updateTargetConsiderUI()
wgImpossible.texture = getDefine("force_level_" .. tostring(levelForce))
wgImpossible.active = true
if levelForce < 6 then
if levelForce < 6 then
wgToolTip.tooltip = i18n.get("uittConsiderTargetLevel")
elseif levelForce == 6 then
-- Named creature
@ -343,7 +342,6 @@ function game:updateTargetConsiderUI()
if impossible then
wgToolTip.tooltip = concatUCString(wgToolTip.tooltip, ucstring("\n"), i18n.get("uittConsiderUnknownLevel"))
end
end
----------------------
@ -506,18 +504,18 @@ function twGroup(groupSize)
else
setDbProp("SERVER:GROUP:" .. tostring(gm) .. ":PRESENT", 0)
end
end
end
end
------------------------------------------------------------------------------------------------------------
--
--
function game:closeWebIGBrowserHeader()
local ui = getUI('ui:interface:webig');
-- save size
ui_webig_browser_h = ui.h;
ui_webig_browser_w = ui.w;
-- reduce window size
ui.pop_min_h = 32;
ui.h = 0;
@ -525,7 +523,7 @@ function game:closeWebIGBrowserHeader()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:openWebIGBrowserHeader()
local ui = getUI('ui:interface:webig');
ui.pop_min_h = 96;
@ -534,7 +532,7 @@ function game:openWebIGBrowserHeader()
if (ui_webig_browser_h ~= nil) then
ui.h = ui_webig_browser_h;
end
if (ui_webig_browser_w ~= nil) then
ui.w = ui_webig_browser_w;
end

View file

@ -27,6 +27,15 @@
<!-- Yoyo: prefer show an empty list when clicking -->
<!-- <action handler="leave_modal" cond="eq(getprop('ui:interface:bag_choose:list:nbelt'),0)" /> -->
</proc>
<proc id="select_special_items">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=1" />
<action handler="browse_home" params="name=ui:interface:inventory:content:bag:webitems:html" />
</proc>
<proc id="select_bag_items">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
</proc>
<!-- ************* -->
<!-- * EQUIPMENT * -->
<!-- ************* -->
@ -44,6 +53,83 @@
onclick_l="proc"
params_l="inv_left_click_on_slot"
auto_grayed="false" />
<template name="img_button"
id="image_button"
ok_text="uittOK"
tx_over="blank.tga"
cancel_text="uittCancel"
posparent="parent"
posref="BM TM"
onclick_ok=""
onclick_ok_param=""
x="0"
y="0"
keep="true"
tooltip_ok=""
avoid_resize_parent="false">
<group id="#id"
posparent="#posparent"
posref="#posref"
child_resize_w="true"
child_resize_h="true"
x="#x"
y="#y"
avoid_resize_parent="#avoid_resize_parent">
<ctrl style="button_ok"
id="bb"
x="0"
y="0"
posref="TL TL"
text_y="-2"
onclick_l="#onclick_ok"
params_l="#onclick_ok_param"
hardtext="#ok_text"
tooltip="#tooltip_ok" />
<ctrl type="button"
id="button"
button_type="push_button"
posref="TL TL"
x="0"
y="0"
scale="false"
tx_over="#tx_over"
color="255 255 255 255"
col_pushed="255 255 255 255"
col_over="255 255 255 0"
onclick_l="#onclick_ok"
params_l="#onclick_ok_param" />
</group>
</template>
<template name="image_button"
tx_over="blank.tga"
onclick_l=""
params_l="" >
<group id="#id"
posref="TL TL"
x="0"
y="0"
sizeref="wh"
w="0"
h="0">
<ctrl type="button"
id=""
button_type="push_button"
posref=""
posparent=""
x=""
y=""
scale="false"
tx_over="#tx_over"
color="255 255 255 255"
col_pushed="255 255 255 255"
col_over="255 255 255 0"
onclick_l="#onclick_l"
params_l="#params_l" />
</group>
</template>
<!-- For the moment we use a template because we have to make the fake container -->
<template name="tinv_equip">
<group id="equip"
@ -159,6 +245,7 @@
posparent="jewelry"
hardtext="uiJewelryTitle"
fontsize="10"
y="2"
shadow="true" />
<!-- Armor -->
<group id="armors"
@ -234,6 +321,7 @@
posparent="armors"
hardtext="uiArmorTitle"
fontsize="10"
y="2"
shadow="true" />
<!--
<group id="hands" posparent="armors" x="8" y="0" w="86" h="42" posref="TR TL" >
@ -334,6 +422,7 @@
<instance template="tinv_nbslots_bulk_weight"
id="ibw"
x="-16"
y="2"
inv_branch="%bag"
inv_bulk_max="%bag_bulk_max" />
</group>
@ -481,6 +570,7 @@
posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color">
<group type="tab"
id="inv_select"
child_resize_w="true"
@ -624,6 +714,99 @@
sizeref="wh"
w="0"
h="0">
<!-- Special Items -->
<ctrl style="text_button_16"
id="bag_items"
posref="TL TL"
y="-2"
x="10"
wmargin="8"
hardtext="uitabInvBag"
tooltip="uitabInvBag"
onclick_l="proc"
params_l="select_bag_items" />
<ctrl style="text_button_16"
id="special_items"
posref="TR TL"
posparent="bag_items"
y="0"
x="2"
wmargin="8"
hardtext="uiSpecialLabo"
tooltip="uiSpecialLabo"
onclick_l="proc"
params_l="select_special_items" />
<!-- Keys
<ctrl style="text_button_16"
id="keys"
posref="TR TL"
posparent="special_items"
y="0"
x="2"
wmargin="8"
hardtext="Keys"
tooltip="uiSpecialLabo"
onclick_l="open_title_help"
params_l="from=user" />-->
<group id="webitems" posref="TL TL" sizeref="wh" h="-45" w="0" x="-10" y="-25" active="0">
<group type="webig_html"
id="html"
url="http://app.ryzom.com/app_arcc/index.php?action=mItem_DisplayUserItems"
title_prefix=""
sizeref="wh"
x="10"
y="0"
w="0"
h="0"
background_color="0 0 0 255"
error_color="255 240 48 255"
link_color="240 155 100 255"
text_color="210 210 210 255"
h1_color="255 255 255 255"
h2_color="255 255 255 255"
h3_color="255 255 255 255"
h4_color="255 255 255 255"
h5_color="255 255 255 255"
h6_color="100 255 100 255"
text_font_size="10"
h1_font_size="20"
h2_font_size="18"
h3_font_size="16"
h4_font_size="14"
h5_font_size="12"
h6_font_size="10"
paragraph_begin_space="1"
multi_line_space_factor="0.25"
td_begin_space="16"
li_begin_space="4"
ul_begin_space="12"
li_indent="0"
ul_indent="30"
checkbox_bitmap_normal="w_slot_on.tga"
checkbox_bitmap_pushed="w_opacity_on.tga"
checkbox_bitmap_over=""
background_bitmap_view="black2"
home="http://app.ryzom.com/app_arcc/index.php?action=mItem_DisplayUserItems"
browse_next_time="true"
form_text_area_group="edit_box_widget_multiline">
<group type="list"
id="text_list"
fontsize="9"
posref="TL TL"
posparent="black"
x="9"
y="-2"
space="0"
sizeref="hw"
w="-4"
h="-4"
maxelements="2000" />
<ctrl style="skin_scroll"
id="scroll_bar" />
</group>
</group>
<instance template="tinv_nbslots_bulk_weight"
id="ibw"
x="0"
@ -632,7 +815,7 @@
<instance template="tinv_item_list"
id="iil"
inv_branch_nb="%max_bag_invslot"
y="-16"
y="-18"
sizeref="wh"
h="-16"
inv_branch="%bag"
@ -841,7 +1024,7 @@
xitem="2"
yitem="-2"
xtext="46"
ytext="-2"
ytext="0"
hspace="2"
array="false"
maxitem="%max_temp_invslot"
@ -1314,6 +1497,188 @@
params="value=add(@UI:PHRASE:SELECT_MEMORY,-1)" />
</group>
<tree node="gestionsets" />
<!-- second hands bar -->
<define id="gestionsets_h" value="1" />
<define id="gestionsets_v" value="2" />
<variable entry="UI:SAVE:GESTIONSETS2_MODE" type="sint32" value="0" />
<proc id="gestionsets2_proc_active">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=1"/>
<action handler="proc" params="gestionsets2_proc_mode" />
</proc>
<proc id="gestionsets2_proc_set">
<action handler="set" params="dblink=UI:SAVE:GESTIONSETS2_MODE|value=@0"/>
<action handler="proc" params="gestionsets2_proc_mode" />
</proc>
<proc id="gestionsets2_proc_mode">
<action handler="proc" cond="eq(@UI:SAVE:GESTIONSETS2_MODE,%gestionsets_h)" params="gestionsets2_proc_horiz"/>
<action handler="proc" cond="ne(@UI:SAVE:GESTIONSETS2_MODE,%gestionsets_h)" params="gestionsets2_proc_vert"/>
</proc>
<proc id="gestionsets2_proc_vert">
<action handler="set" params="target='ui:interface:gestionsets2_menu:horiz:active'|value=1"/>
<action handler="set" params="target='ui:interface:gestionsets2_menu:vert:active'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:w'|value=68"/>
<action handler="set" params="target='ui:interface:gestionsets2:h'|value=300"/>
<action handler="set" params="target='ui:interface:gestionsets2:select_memory:active'|value=1"/>
<action handler="set" params="target='ui:interface:gestionsets2:select_memory_h:active'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:w'|value=68"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:h'|value=300"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:w'|value=68"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:h'|value=300"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:y'|value=-28"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:y'|value=-56"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:y'|value=-84"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:y'|value=-112"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:y'|value=-140"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:y'|value=-168"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:y'|value=-196"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:y'|value=-224"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:y'|value=-252"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:y'|value=-28"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:y'|value=-56"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:y'|value=-84"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:y'|value=-112"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:y'|value=-140"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:y'|value=-168"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:y'|value=-196"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:y'|value=-224"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:x'|value=26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:y'|value=-252"/>
</proc>
<proc id="gestionsets2_proc_horiz">
<action handler="set" params="target='ui:interface:gestionsets2_menu:horiz:active'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2_menu:vert:active'|value=1"/>
<action handler="set" params="target='ui:interface:gestionsets2:w'|value=315"/>
<action handler="set" params="target='ui:interface:gestionsets2:h'|value=52"/>
<action handler="set" params="target='ui:interface:gestionsets2:select_memory:active'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:select_memory_h:active'|value=1"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:w'|value=315"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:h'|value=52"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:w'|value=315"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:h'|value=52"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:x'|value=28"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:x'|value=56"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:x'|value=84"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:x'|value=112"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:x'|value=140"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:x'|value=168"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:x'|value=196"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:x'|value=224"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:x'|value=252"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:y'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:x'|value=0"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:x'|value=28"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:x'|value=56"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:x'|value=84"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:x'|value=112"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:x'|value=140"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:x'|value=168"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:x'|value=196"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:x'|value=224"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:y'|value=-26"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:x'|value=252"/>
<action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:y'|value=-26"/>
</proc>
<group type="menu" id="gestionsets2_menu" extends="base_menu_with_color">
<action id="horiz" name="uiHorizontal" handler="proc" params="gestionsets2_proc_set|%gestionsets_h"/>
<action id="vert" name="uiVertical" handler="proc" params="gestionsets2_proc_set|%gestionsets_v"/>
<separator />
</group>
<group type="container"
id="gestionsets2"
w="68"
@ -1322,7 +1687,7 @@
header_active="false"
right_button="false"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
group_params_r="menu=ui:interface:gestionsets2_menu"
movable="true"
active="true"
opened="false"
@ -1330,8 +1695,8 @@
global_color="false"
header_color="UI:SAVE:WIN:COLORS:INV"
locked="true"
on_active="set"
on_active_params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=1"
on_active="proc"
on_active_params="gestionsets2_proc_active"
on_deactive="set"
on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=0"
help_page="interf_action_bar.html">
@ -1501,9 +1866,66 @@
tooltip="uittHandSet"
tooltip_parent="win" />
</group>
<group type="select_number"
id="select_memory_h"
value="UI:PHRASE:SELECT_MEMORY_2"
loop="true"
min="1"
max="10"
x="0"
y="0"
w="300"
h="52"
active="false"
posparent="shortcuts"
posref="MM MM"
delta="1">
<view type="bitmap"
id="slot_number"
posref="MR MR"
texture="W_slot_number.tga" />
<view type="text"
id="number"
posparent="slot_number"
posref="MM MM"
x="0"
y="0"
color="255 255 255 255"
fontsize="12"
shadow="true"
hardtext="0"
global_color="false" />
<ctrl type="button"
id="arrow_up"
button_type="push_button"
posref="TM BM"
posparent="slot_number"
x="0"
y="0"
tx_normal="W_arrow_up_1.tga"
tx_pushed="W_arrow_up_1.tga"
tx_over="W_button_12_over.tga"
tooltip="uittHandSet"
tooltip_parent="win" />
<ctrl type="button"
id="arrow_down"
button_type="push_button"
posref="BM TM"
posparent="slot_number"
x="0"
y="0"
tx_normal="W_arrow_down_1.tga"
tx_pushed="W_arrow_down_1.tga"
tx_over="W_button_12_over.tga"
tooltip="uittHandSet"
tooltip_parent="win" />
</group>
<link expr="@UI:PHRASE:SELECT_MEMORY_2"
action="phrase_select_memory_2"
params="value=add(@UI:PHRASE:SELECT_MEMORY_2,-1)" />
<link expr="depends(@UI:SAVE:GESTIONSETS2_MODE)"
action="proc"
params="gestionsets_proc_mode" />
</group>
<tree node="gestionsets2" />
<!-- hands -->

View file

@ -838,6 +838,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
value="basic.ttf" /> -->
<param name="font"
value="ryzom.ttf" />
<param name="monospace_font"
value="ryzom_monospace.ttf" />
<param name="add_coef_font"
value="3" />
<param name="mul_coef_anim"

View file

@ -25,6 +25,8 @@
value="basic.ttf" /> -->
<param name="font"
value="ryzom.ttf" />
<param name="monospace_font"
value="ryzom_monospace.ttf" />
<param name="add_coef_font"
value="0" />
<param name="mul_coef_anim"

View file

@ -25,6 +25,8 @@
value="outgame.ttf" /> -->
<param name="font"
value="ryzom.ttf" />
<param name="monospace_font"
value="ryzom_monospace.ttf" />
<param name="add_coef_font"
value="3" />
<param name="mul_coef_anim"

View file

@ -0,0 +1,574 @@
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<!-- horizontal label/menu template -->
<template name="template_label_menu_border" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
posref="" w_label="0" w_combo="0" hardtext="" on_change_params="" y_text="4">
<group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
<!-- label -->
<group id="label" sizeref="w5h" w="#w_label" h="0" x="0" y="0" posref="TL TL" posparent="parent" >
<view type="bitmap" id="sep_top" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_bottom" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="w" w="0" h="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_left" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_right" posparent="parent" posref="TR TR" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="back" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="wh" w="0" h="0"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 200" />
<group id="text_group" posparent="parent" posref="TL TL" sizeref="wh" x="0" w="-5" y="0" h="0" >
<view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext"
auto_clamp="true" over_extend_view_text="true" over_extend_parent_rect="true"/>
</group>
<ctrl type="button" button_type="push_button" id="tooltip" sizeref="wh" w="0" h="0"
col_over="255 255 255 0" tx_over="blank.tga" scale="true" />
</group>
<instance template="menu_button_template" id="menu" x="0" y="0" sizeref="wh" posparent="label"
posref="TR TL" w="#w_combo" h="0" params_l="#on_change_params" />
</group>
</template>
<!-- sequence elements template -->
<template name="menus_list_template" keep="true" posref="TL TL" posparent="" active="true" id="" sizeref="wh" w="0" h= "0" x="0" y="0"
title="" label1="" label2="" params_right="" params_left="" remove_pair="" col_pushed=""
params_over="">
<group id="#id" posref="#posref" posparent="#posparent" sizeref="#sizeref" x="#x" w="#w" y="#y" h="#h" active="#active">
<view type="bitmap" id="sep_top" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_bottom" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="w" w="0" h="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_left" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_right" posparent="parent" posref="TR TR" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="text" id="title" active="true" posparent="parent" posref="TL TL"
x="33" y="-10" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#title" />
<group id="content" posref="TL TL" sizeref="wh" x="5" w="-10" y="-30" h="-40" >
<group id="back" posref="TL TL" sizeref="wh" x="23" w="-43" y="0" h="0" >
<instance template="inner_thin_border" inherit_gc_alpha="true"/>
</group>
<group id="label_group" posparent="back" posref="TL TL" sizeref="w" x="0" w="0" y="-10" h="20" >
<group id="label1_group" posref="TL TL" posparent="parent" sizeref="w5h" x="0" w="0" y="0" h="0" >
<view type="text" id="label1" active="true" posparent="parent" posref="TL TL"
x="5" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#label1" />
</group>
<group id="label2_group" posparent="label1_group" posref="TR TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<view type="text" id="label2" active="true" posparent="parent" posref="TL TL"
x="5" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#label2" />
</group>
</group>
<group id="back_list" posparent="back" posref="TL TL" sizeref="wh" x="-23" w="23" y="-25" h="-25" >
</group>
<group id="menus_list" type="list" posparent="back_list" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" >
</group>
<ctrl type="scroll" id="scroll_bar" posparent="back" posref="TR TR" w="8" x="13" y="-25" target="menus_list" align="T"
tx_topright="w_scroll_l123_t.tga" tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_l123_b.tga"/>
</group>
</group>
</template>
<!-- sequence elements template bis -->
<template name="menus_list_template_bis" keep="true" posref="TL TL" posparent="" active="true" id="" sizeref="wh" w="0" h= "0" x="0" y="0"
title="" label1="" label2="" params_right="" params_left="" remove_pair="" col_pushed=""
params_over="" on_change_params="">
<group id="#id" posref="#posref" posparent="#posparent" sizeref="#sizeref" x="#x" w="#w" y="#y" h="#h" active="#active">
<view type="bitmap" id="sep_top" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_bottom" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="w" w="0" h="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_left" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_right" posparent="parent" posref="TR TR" sizeparent="parent" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="text" id="title" active="true" posparent="parent" posref="TL TL"
x="33" y="-10" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#title" />
<group id="content" posref="TL TL" sizeref="wh" x="5" w="-10" y="-30" h="-40" >
<group id="back" posref="TL TL" sizeref="wh" x="23" w="-43" y="0" h="0" >
<instance template="inner_thin_border" inherit_gc_alpha="true"/>
</group>
<group id="label_group" posparent="back" posref="TL TL" sizeref="w" x="0" w="0" y="-10" h="17" >
<group id="label1_group" posref="TL TL" posparent="parent" sizeref="w5h" x="0" w="0" y="0" h="0" >
<view type="text" id="label1" active="true" posparent="parent" posref="TL TL"
x="5" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#label1" />
</group>
<group id="label2_group" posparent="label1_group" posref="TR TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<view type="text" id="label2" active="true" posparent="parent" posref="TL TL"
x="5" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#label2" />
</group>
</group>
<instance template="template_label_menu_border" id="what_action" sizeref="w" w="0" h="30" x="0" y="0"
posparent="label_group" posref="BL TL" w_label="0" w_combo="0" hardtext=""
on_change_params="#on_change_params"/>
<group id="back_list" posparent="back" posref="TL TL" sizeref="wh" x="-23" w="23" y="-75" h="-75" >
</group>
<group id="menus_list" type="list" posparent="back_list" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" >
</group>
<ctrl type="scroll" id="scroll_bar" posparent="back_list" posref="TR TR" w="8" x="13" y="0" target="menus_list" align="T"
tx_topright="w_scroll_l123_t.tga" tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_l123_b.tga"/>
</group>
</group>
</template>
<!-- two menus template -->
<template name="two_menu_template" keep="true" id="" posparent="" sizeref="w" posref="TL TL" x="0" y="0" w="0" h="25"
params_left="" params_right="" params_over="">
<group id="#id" sizeref="#sizeref" posparent="#posparent" posref="#posref" x="#x" y="#y" w="#w" h="#h">
<instance template="menu_button_template" id="left_menu" x="0" y="0" sizeref="w5h" posparent="parent"
posref="TL TL" w="0" h="0" params_l="#params_left" params_over="#params_over" />
<instance template="menu_button_template" id="right_menu" x="0" y="0" sizeref="wh" posparent="left_menu"
posref="BR BL" w="0" h="0" params_l="#params_right" params_over="#params_over" />
</group>
</template>
<!-- two menus / trash button template -->
<template name="two_menu_trash_template" keep="true" active="true" id="" posparent="" sizeref="w" posref="TL TL" x="0" y="0" w="0" h="25"
params_left="" params_right="" remove_pair="" col_pushed="255 255 255 255" params_over="">
<group id="#id" active="#active" sizeref="#sizeref" posparent="#posparent" posref="#posref" x="#x" y="#y" w="#w" h="#h">
<group id="button_group" posparent="parent" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<instance template="r2ed_triggers_little_button" id="remove_menu_pair" x="0" y="-3" posparent="parent" posref="TL TL"
onclick_l="lua" params_l="#remove_pair" active="false"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
<instance template="two_menu_template" id="menu_pair" sizeref="w" posparent="parent"
posref="TL TL" x="23" y="0" w="-23" h="25" params_left="#params_left"
params_right="#params_right" params_over="#params_over" />
</group>
</template>
<!-- menu / trash button template -->
<template name="menu_trash_template" keep="true" active="true" id="" posparent="" sizeref="w" posref="TL TL" x="0" y="0" w="0" h="25"
params_l="" remove_menu="" col_pushed="255 255 255 255" params_over="">
<group id="#id" active="#active" sizeref="#sizeref" posparent="#posparent" posref="#posref" x="#x" y="#y" w="#w" h="#h">
<instance template="menu_button_template" id="menu" x="0" y="0" sizeref="wh" posparent="parent"
posref="TL TL" w="-25" h="0" params_l="#params_l" params_over="#params_over" />
<group id="button_group" posparent="menu" posref="TR TL" sizeref="h" x="5" w="20" y="0" h="0" >
<instance template="r2ed_triggers_little_button" id="remove_menu" x="0" y="0" posparent="parent" posref="TL TL"
onclick_l="lua" params_l="#remove_menu" active="false"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
</group>
</template>
<!-- button tab style -->
<style style="tab_button_logic_entity" type="tab_button" button_type="radio_button"
x="0" posref="TR TL"
text_x="4"
text_posref="ML ML"
tx_normal="r2_tab_wide_normal" tx_pushed="r2_tab_wide_pushed" tx_over="r2_tab_wide_over"
global_color_normal="true" global_color_over="true" global_color_pushed="true"
color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"
text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
text_global_color_normal="true"
text_global_color_pushed="false"
text_global_color_over="true"
/>
<group type="menu" id="r2ed_logic_entity_menu" extends="base_menu" mouse_pos="false">
</group>
<!-- ************************************************************************************************** -->
<!-- *********************************** LOGIC ENTITIES GUI ******************************************** -->
<!-- ************************************************************************************************** -->
<group type="container" id="r2ed_logic_entities" title="uiR2EDChatStepEditor" global_color="false" line_at_bottom="false"
movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_CHAT_STEPS"
pop_min_w="350" pop_min_h="146" w="400" h="590" pop_max_w="700" pop_max_h="800" active="false" escapable = "true"
on_close="" on_close_params="" on_deactive="" on_deactive_params=""
savable="true"
>
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<!-- MENU -->
<group id="menu" x="0" y="0" sizeref="wh" w="0" h="0" posparent="parent" posref="TL TL" >
<group type="tab" id="sequence_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-4" >
<ctrl style="tab_button_logic_entity" id="tab0" x="0" posref="TL TL" group="actions"
hardtext="uiR2EdEvents" onclick_r="" params_r="" onclick_l="" params_l=""/>
<view type="bitmap" id="tab0_bm" posparent="tab0" posref="TL TL" w="24" h="24" x="4" y="-2 "
color="255 255 255 255" />
<ctrl style="tab_button_logic_entity" id="tab1" posparent="tab0" group="reactions"
hardtext="uiR2EdTriggers" onclick_r="" params_r="" onclick_l="" params_l=""/>
<view type="bitmap" id="tab1_bm" posparent="tab1" posref="TL TL" w="24" h="24" x="4" y="-2 "
color="255 255 255 255" />
</group>
<view type="bitmap" id="sep" posparent="logic_entities_tabs" posref="BL TL" sizeparent="parent" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<!-- ************************************ ACTIONS ************************************************** -->
<group id="actions" posref="TL TL" sizeref="wh" x="0" w="0" y="-20" h="-5" >
<group id="actions_content" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<instance template="sequence_elements_template" id="sequence_elts" new_elt="r2:newAction(true)"
new_elt_text="uiR2EdNewAction" elt_order_text="action order" up_elt="r2:upAction()"
down_elt="r2:downAction()" max_min_elts="r2:maximizeMinimizeActions()"
down_up_color="200 150 0 255" y="-10" />
</group>
</group>
<!-- ************************************ REACTIONS ************************************************ -->
<group id="reactions" posref="TL TL" sizeref="wh" x="0" w="0" y="-20" h="-5" >
<group id="reactions_content" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<instance template="sequence_elements_template" id="sequence_elts" new_elt="r2:newReaction(true)"
new_elt_text="uiR2EdNewReaction" elt_order_text="reaction order" up_elt="r2:upReaction()"
down_elt="r2:downReaction()" max_min_elts="r2:maximizeMinimizeReactions()"
down_up_color="120 45 185 255" y="-10" />
</group>
</group>
</group>
</group>
</group>
<tree node="r2ed_logic_entities">
</tree>
<group type="container" id="r2ed_events" title="uiR2EdEvents" global_color="false" line_at_bottom="false"
movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_EVENTS"
pop_min_w="350" pop_min_h="146" w="400" h="590" pop_max_w="1000" pop_max_h="800" active="false" escapable = "true"
on_close="" on_close_params="" on_deactive="" on_deactive_params=""
savable="true"
>
<group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="header_opened" x="0" y="0" w="1000" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<instance template="template_label_menu" id="filterMenu" w="250" h="20" x="15" y="-15" y_text="0"
posparent="parent" posref="TL TL" w_label="-50" w_combo="100" hardtext="uiR2EDEventFilter"
on_change_params="r2.events:initFilterMenu()" color_text="255 255 0 255" />
<ctrl style="button_ok" id="add" x="10" y="0" posref="BR BL" posparent="filterMenu"
text_y="0" onclick_l="lua" params_l="r2.events:refreshEvents()" hardtext="uiR2EDRefreshEvents"
fontsize="10" text_color_normal="255 255 255 170" />
<instance template="sequence_elements_template" id="sequence_elts" x="0" y="-10" h="-45" posparent="filterMenu" posref="BL TL"
new_elt="r2.events:newElementInst()" new_elt_text="uiR2EdNewAction" />
</group>
</group>
<tree node="r2ed_events">
</tree>
<!-- ************************************************ ACTION EDITOR
<template name="template_edit_action" keep="true" sizeref="w" active="false" w="0" h="435" id=""
col_pushed="200 150 0 255">
<group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL" >
<group id="back" x="0" y="0" sizeref="wh" w="-20" h="0" posref="TL TL" />
<ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
col_over="#col_pushed" col_pushed="#col_pushed" tx_over="blank.tga" tx_pushed="blank.tga" scale="true"
onclick_l="lua" params_l="r2:closeElementEditor('r2ed_logic_entities:content:menu:actions')" />
<instance template="back_widget" id="back_color" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
<group id="action_name" posparent="back" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
<view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="" />
</group>
<view type="bitmap" id="sep" posparent="action_name" posref="BL BL" sizeref="w" w="0" h="1"
x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
<group id="triggers" posref="TL TL" posparent="back" sizeref="w" h="45" x="10" w="0" y="-40">
<group id="label_group" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" h="20" >
<group id="what_triggers" posref="TL TL" posparent="parent" sizeref="w5h" x="0" w="0" y="0" h="0" >
<view type="text" id="label_what_triggers" active="true" posparent="parent" posref="TL TL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdWhatTriggers" />
</group>
<group id="on_which_event" posparent="what_triggers" posref="TR TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<view type="text" id="label_which_event" active="true" posparent="parent" posref="TL TL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdWhichEvent" />
</group>
</group>
<instance template="template_label_menu_border" id="which_event" sizeref="w" w="0" h="25" x="0" y="0"
posparent="label_group" posref="BL TL" w_label="0" w_combo="0" hardtext=""
on_change_params="r2:openRightMenu(false, 'Events', 'r2:actionWhichEvent')"/>
</group>
<instance template="menus_list_template" id="actions_list" posparent="triggers" posref="BL TL"
sizeref="w" x="0" y="-20" w="0" h="165" title="uiR2EdActionsList" label1="Which entity" label2="What action"
params_left="r2:openWhichEntityMenu('ActionStep', 'actions', 'Actions')"
params_right="r2:openRightMenu(true, 'ApplicableActions', 'r2:actionWhatAction')"
remove_pair="" col_pushed=""/>
<instance template="menus_list_template" id="conditions_list" posparent="actions_list" posref="BL TL"
sizeref="w" x="0" y="-20" w="0" h="115" title="uiR2EdExtraConditions" label1="Which entity" label2="What condition"
params_left="r2:openWhichEntityMenu('ConditionStep', 'actions', 'Conditions')"
params_right="r2:openRightMenu(true, 'Conditions', 'r2:actionWhatCondition')"
remove_pair="" col_pushed=""/>
<group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
<instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
onclick_l="lua" params_l="r2:removeAction()"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
</group>
</template>
-->
<!-- ************************************************ EVENT EDITOR *********************************************** -->
<template name="template_edit_events" keep="true" sizeref="w" active="false" w="0" id=""
col_pushed="200 150 0 255">
<group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >
<group id="back" x="0" y="0" sizeref="wh" w="-20" h="0" posref="TL TL" />
<ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
onclick_l="lua" params_l="r2.events:closeElementEditor()" />
<instance template="back_widget" id="back_color" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
<view type="bitmap" id="dismatch_filter" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="wh" w="0" h="0"
x="0" scale="false" tile="true" texture="r2ed_dismatch_filter.tga" color="255 255 255 255" />
<group id="event_name" posparent="back" posref="TL TL" sizeref="w" x="5" w="-25" y="0" min_h="28" child_resize_h="true" child_resize_hmargin="8">
<view type="text" id="name" posref="TL TL" x="5" y="-4" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="" multi_line="true" multi_max_line="2"
justification="clip_word" />
</group>
<group id="event_validity" posparent="parent" posref="TR TR" x="-5" h="24" w="24" y="-5" >
<ctrl type="button" button_type="toggle_button" id="invalid_event" active="false" posref="TL TL" sizeref="wh"
w="0" h="0" x="0" y="0" tooltip="uiR2EDInvalidEvent"
tx_normal="r2ed_invalid_event_small.tga" tx_over="r2ed_invalid_event_small.tga" tx_pushed="r2ed_invalid_event_small.tga" scale="true" />
<ctrl type="button" button_type="toggle_button" id="valid_event" active="false" posparent="parent" posref="TL TL"
sizeref="wh" w="0" h="0" x="0" y="0" tooltip=""
tx_normal="r2ed_not_current_act.tga" tx_over="r2ed_not_current_act.tga" tx_pushed="r2ed_not_current_act.tga" scale="true" />
</group>
<view type="bitmap" id="sep" posparent="event_name" posref="BL BL" sizeref="w" w="0" h="1"
x="5" y="0" scale="true" texture="blank.tga" color="200 200 200 200" />
<group id="when" posref="BL TL" posparent="sep" sizeref="w" h="45" x="0" w="25" y="-10">
<group id="label_group" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" h="20" >
<view type="text" id="when_label" active="true" posparent="parent" posref="BL BL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="11" shadow="true" hardtext="WHEN" />
</group>
<instance template="menu_button_template" id="when_menu" x="0" y="0" sizeref="wh" posparent="label_group"
posref="BL TL" w="0" h="0" params_l="r2.events:initEventMenu('Events')" />
</group>
<group id="what_happens" posref="BL TL" posparent="when" sizeref="w" child_resize_h="true" child_resize_hmargin="5"
x="0" w="0" y="-10">
<group id="label_group" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" h="20" >
<view type="text" id="what_happens_label" active="true" posparent="parent" posref="BL BL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="11" shadow="true" hardtext="WHAT HAPPENS" />
</group>
<group id="actions_list_gr" posparent="label_group" posref="BL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
child_resize_hmargin="1" >
<group id="actions_list" type="list" posparent="parent" posref="TL TL" x="0" y="0" sizeparent="parent" sizeref="wh" w="0" h="0" >
</group>
</group>
<ctrl style="button_ok" id="add" active="false" x="0" y="-8" wmin="130" posref="BL TL" posparent="actions_list_gr"
text_y="0" onclick_l="lua" params_l="r2.events:newActionUI()" hardtext="uiR2EDAddAction" fontsize="10" text_color_normal="255 255 255 170" />
</group>
<group id="conditions" active="false" posref="BL TL" posparent="what_happens" sizeref="w" child_resize_h="true" child_resize_hmargin="0"
x="0" w="0" y="-10">
<group id="conditions_gr" active="false" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" child_resize_h="true" child_resize_hmargin="8" >
<group id="label_group" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" h="20" >
<view type="text" id="conditions_label" active="true" posparent="parent" posref="BL BL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="11" shadow="true" hardtext="CONDITIONS" />
</group>
<group id="conditions_list_gr" posparent="label_group" posref="BL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
child_resize_hmargin="1" >
<group id="conditions_list" type="list" posparent="parent" posref="TL TL" x="0" y="0" sizeparent="parent" sizeref="wh" w="0" h="0" >
</group>
</group>
</group>
<ctrl style="button_ok" id="add" x="0" y="0" wmin="130" posref="BL TL" posparent="conditions_gr"
text_y="0" onclick_l="lua" params_l="r2.events:newConditionUI()" hardtext="uiR2EDAddCondition" fontsize="10" text_color_normal="255 255 255 170" />
</group>
<group id="element_manage" active="true" posparent="conditions" sizeref="w" w="20" h="30" posref="BL TL" x="-10" y="0">
<instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
onclick_l="lua" params_l="r2.events:removeElementInst()"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
<ctrl style="button_ok" id="advanced" x="-3" y="3" posref="BR BR" posparent="parent"
text_y="0" onclick_l="lua" params_l="r2.events:advancedEditor('true')" hardtext="Advanced..." fontsize="12" text_color_normal="255 255 255 150" />
</group>
</group>
</template>
<!-- *********************************************** REACTION EDITOR ********************************************** -->
<template name="template_edit_reaction" keep="true" sizeref="w" active="false" w="0" h="440" id=""
col_pushed="120 45 185 255">
<group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL" >
<group id="back" x="0" y="0" sizeref="wh" w="-20" h="0" posref="TL TL" />
<ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
col_over="#col_pushed" col_pushed="#col_pushed" tx_over="blank.tga" tx_pushed="blank.tga" scale="true"
onclick_l="lua" params_l="r2:closeElementEditor('r2ed_logic_entities:content:menu:reactions')" />
<instance template="back_widget" id="back_color" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
<group id="reaction_name" posparent="back" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
<view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="" />
</group>
<view type="bitmap" id="sep" posparent="reaction_name" posref="BL BL" sizeref="w" w="0" h="1"
x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
<group id="triggers" posref="TL TL" posparent="back" sizeref="w" h="45" x="10" w="0" y="-40">
<group id="label_group" posparent="parent" posref="TL TL" sizeref="w" x="0" w="0" y="0" h="20" >
<group id="what_triggers" posref="TL TL" posparent="parent" sizeref="w5h" x="0" w="0" y="0" h="0" >
<view type="text" id="label_what_triggers" active="true" posparent="parent" posref="TL TL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdWhatTriggers" />
</group>
<group id="which_event" posparent="what_triggers" posref="TR TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<view type="text" id="label_which_event" active="true" posparent="parent" posref="TL TL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdWhichEvent" />
</group>
</group>
<instance template="two_menu_template" id="combos" sizeref="w" posparent="label_group"
posref="BL TL" x="0" y="0" w="0" h="25" params_left="r2:openWhichEntityMenu(nil, 'reactions', nil)" params_right="r2:openRightMenu(true, 'Events', 'r2:reactionWhichEvent')"/>
</group>
<instance template="menus_list_template_bis" active="true" id="actions_list" posparent="triggers" posref="BL TL"
sizeref="w" h="165" x="0" y="-20" w="0" title="uiR2EdActionsList" label1="Which entity" label2="What action"
params_left=""
params_right=""
remove_pair="" col_pushed="" on_change_params="r2:openRightMenu(false, 'ApplicableActions', 'r2:reactionWhatMainAction')"/>
<instance template="menus_list_template" active="true" id="conditions_list" posparent="actions_list" posref="BL TL"
sizeref="w" h="115" x="0" y="-20" w="0" title="uiR2EdExtraConditions" label1="Which entity" label2="What condition"
params_left="r2:openWhichEntityMenu('ConditionStep', 'reactions', 'Conditions')"
params_right="r2:openRightMenu(true, 'Conditions', 'r2:reactionWhatCondition')"
remove_pair="" col_pushed=""/>
<group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
<instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
onclick_l="lua" params_l="r2:removeReaction()"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
</group>
</template>
</interface_config>

View file

@ -0,0 +1,780 @@
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<template name="template_label_menu" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
posref="" w_label="0" w_combo="0" hardtext="" on_change_params="" y_text="4" color_text="">
<group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
<!-- label -->
<group id="label" sizeref="w5h" w="#w_label" h="0" x="0" y="0" posref="TL TL" posparent="parent" >
<view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
</group>
<instance template="menu_button_template" id="menu" x="0" y="0" sizeref="wh" posparent="label"
posref="TR TL" w="#w_combo" h="0" params_l="#on_change_params" color_text="#color_text" />
</group>
</template>
<template name="template_label_menu_resize" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
posref="" w_combo="0" hardtext="" on_change_params="" y_text="4">
<group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
<!-- label -->
<group id="label" sizeref="h" w="#w_label" h="0" x="0" y="0" posref="TL TL" posparent="parent" >
<view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
</group>
<instance template="menu_button_template" id="menu" x="#w_label" y="0" sizeref="wh" posparent="parent"
posref="BL BL" w="#w_combo" h="0" params_l="#on_change_params" />
</group>
</template>
<template name="template_menu_label" keep="true" active="true" id="" x="0" y="0" sizeref="" w="" h="" posparent=""
posref="" w_label="0" w_combo="0" hardtext="" on_change_params="" y_text="4">
<group id="#id" active="#active" x="#x" y="#y" sizeref="#sizeref" w="#w" h="#h" posparent="#posparent" posref="#posref" >
<!-- menu -->
<instance template="menu_button_template" id="menu" x="0" y="0" sizeref="w5h" posparent="parent"
posref="TL TL" w="#w_combo" h="0" params_l="#on_change_params" />
<!-- label -->
<group id="label" sizeref="wh" w="#w_label" h="0" x="0" y="0" posref="TR TL" posparent="menu" >
<view type="text" id="name_text" posref="BL BL" x="2" y="#y_text" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
</group>
</group>
</template>
<template name="r2ed_triggers_button" keep="true" id="" x="0" y="0" active="true" posref="BL BM" posparent="parent" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
color="" col_over="" col_pushed="" offset_x = "0" offset_y = "0" onclick_l="" params_l=""
>
<group id="#id" active="#active" x="#x" y="#y" posref="#posref" posparent="#posparent"
child_resize_w="true" child_resize_h="true" child_resize_wmargin="#offset_x" child_resize_hmargin="#offset_y"
onclick_l="" params_l="" >
<group id="button_group" active="true" child_resize_w="true" child_resize_h="true" posref="BR BR">
<view type="bitmap" id="bl" color="#color" w="8" h="8" posref="BL BL" texture="r2ed_triggers_corner.tga" rot="3"/>
<ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
tx_normal="#icon" tx_pushed="#icon_pushed" tx_over="#icon_over" tooltip="#tooltip"
color="#color" col_over="#col_over" col_pushed="#col_pushed"
global_color="false" global_color_normal="false" global_color_over="false" global_color_pushed="false"
onclick_l="#onclick_l" params_l="#params_l" over_when_pushed = "false" />
<view type="bitmap" id="bottom" color="#color" scale="true" posparent="button" posref="BL TL" sizeref="w" w="0" h="8" texture="r2ed_triggers_border.tga" rot="2"/>
<view type="bitmap" id="top" color="#color" scale="true" posparent="button" posref="TL BL" sizeref="w" w="0" h="8" texture="r2ed_triggers_border.tga" rot="0"/>
<view type="bitmap" id="left" color="#color" scale="true" posparent="button" posref="BL BR" sizeref="h" w="8" h="0" texture="r2ed_triggers_border.tga" rot="3"/>
<view type="bitmap" id="right" color="#color" scale="true" posparent="button" posref="BR BL" sizeref="h" w="8" h="0" texture="r2ed_triggers_border.tga" rot="1"/>
<view type="bitmap" id="tl" color="#color" w="8" h="8" posref="TL BR" texture="r2ed_triggers_corner.tga" posparent="button" rot="0"/>
<view type="bitmap" id="tr" color="#color" w="8" h="8" posref="TR BL" texture="r2ed_triggers_corner.tga" posparent="button" rot="1"/>
<view type="bitmap" id="br" color="#color" w="8" h="8" posref="BR TL" texture="r2ed_triggers_corner.tga" posparent="button" rot="2"/>
</group>
</group>
</template>
<!-- button tab style -->
<style style="tab_button_sequence" keep="true" type="tab_button" button_type="radio_button"
x="0" posref="TR TL"
text_x="4"
text_posref="ML ML"
tx_normal="r2_tab_wide_normal" tx_pushed="r2_tab_sequence_pushed" tx_over="r2_tab_wide_over"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
color="255 255 255 255" col_over="255 255 255 255"
text_y="-2" fontsize="10" shadow="true" wmargin="8"
text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
text_global_color_normal="true"
text_global_color_pushed="true"
text_global_color_over="true"
onclick_l="lua" params_l=""
/>
<template name="element_template" keep="true" id="" posref="" x="" y="" hardtext=""
select_elt="" open_elt_editor="" max_min_elt="" remove_elt=""
col_over="" col_pushed="" multi_max_line="3" >
<group id="#id" sizeref="w" posref="#posref" x="#x" y="#y" w="0" child_resize_h="true" child_resize_hmargin="0" >
<group id="element_list" active="true" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" >
<group id="element" active="true" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" >
<instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
<view type="bitmap" id="dismatch_filter" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="wh" w="0" h="0"
x="0" scale="false" tile="true" texture="r2ed_dismatch_filter.tga" color="255 255 255 255" />
<ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
col_over="#col_over" col_pushed="#col_pushed" tx_over="blank.tga" tx_pushed="blank.tga" scale="true"
onclick_l="lua" params_l="#select_elt" pushed="false" />
<group id="element_title" posparent="parent" sizeref="w" w="0" min_h="22" child_resize_h="true" posref="TL TL" x="0" y="0">
<group id="group_title" posparent="parent" sizeref="w" w="-26" child_resize_h="true" child_resize_hmargin="8" posref="TL TL" x="0" y="0">
<view type="text" id="title" posref="TL TL" x="10" y="-5" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" multi_line="true" multi_max_line="#multi_max_line"/>
</group>
<instance template="r2ed_triggers_little_button" id="minimize_element" x="-2" y="-2" posparent="parent" posref="TR TR"
onclick_l="lua" params_l="#max_min_elt" active="false"
icon="r2ed_triggers_minimize.tga" icon_over="r2ed_triggers_minimize.tga" icon_pushed="r2ed_triggers_minimize.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
<instance template="r2ed_triggers_little_button" id="maximize_element" x="-2" y="-2" posparent="parent" posref="TR TR"
onclick_l="lua" params_l="#max_min_elt" active="false"
icon="r2ed_triggers_maximize.tga" icon_over="r2ed_triggers_maximize.tga" icon_pushed="r2ed_triggers_maximize.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
<ctrl type="button" button_type="toggle_button" id="invalid_event" active="false" posref="TR TR"
w="24" h="24" x="-2" y="-2" tooltip="uiR2EDInvalidEvent"
tx_normal="r2ed_invalid_event_small.tga" tx_over="r2ed_invalid_event_small.tga" tx_pushed="r2ed_invalid_event_small.tga" scale="true" />
<ctrl type="button" button_type="toggle_button" id="valid_event" active="false" posparent="parent" posref="TR TR"
w="24" h="24" x="-2" y="-2" tooltip=""
tx_normal="r2ed_not_current_act.tga" tx_over="r2ed_not_current_act.tga" tx_pushed="r2ed_not_current_act.tga" scale="true" />
</group>
<group id="element_text" active="false" posparent="element_title" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="0" posref="BL TL" x="0" y="0" >
<view type="bitmap" id="sep" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="w" w="-40" h="1"
x="10" scale="true" texture="blank.tga" color="200 200 200 90" />
<group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" />
<group id="scroll_text_gr" posparent="crop" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
child_resize_hmargin="0" max_h="200" >
<group type="scroll_text" id="scroll_activity" sizeref="w" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" x="0" y="0" min_height="80" max_height="200" >
<group type="list" id="text_list" hardtext="" shadow="true" fontsize="12" justification="dont_clip_word" color="255 255 255 160" space="3"
global_color="true" posref="TL TL" x="10" y="0" sizeref="hw" w="-25" h="0" />
<ctrl type="scroll" id="scroll_bar" align="T" posref="TR TR" w="8" y="0" x="-2" tx_topright="w_scroll_l123_t.tga"
tx_middle="w_scroll_l123_m.tga" tx_bottomleft="w_scroll_l123_b.tga"/>
</group>
</group>
<ctrl style="skin_scroll" id="scroll_bar_text" align="T" target="scroll_text_gr" posparent="crop" posref="TR TR"
x="-5" y="0" />
</group>
</group>
</group>
</group>
</template>
<!-- sequence tab template -->
<template name="sequence_tab_template" keep="true" active="true" id="" posparent="" posref="" hardtext=""
group="" col_pushed="" params_l="" >
<ctrl style="tab_button_sequence" id="#id" x="0" posparent="#posparent" posref="#posref" group="#group"
hardtext="#hardtext" col_pushed="#col_pushed" params_l="#params_l" color="255 255 255 255" col_over="255 255 255 255" />
</template>
<!-- sequence elements template -->
<template name="sequence_elements_template" keep="true" active="true" id=""
new_elt="" new_elt_text="" elt_order_text="" up_elt="" down_elt="" max_min_elts="" x="10" y="-30"
posparent="parent" posref="TL TL" sizeparent="parent" w="-10" h="-30" down_up_color="" over_down_up_color="255 255 255 255">
<group id="#id" posparent="#posparent" posref="#posref" sizeparent="#sizeparent" sizeref="wh" x="#x" w="#w" y="#y" h="#h" active="true">
<group id="sequence_content" posref="TL TL" sizeref="wh" x="0" w="0" y="0" h="0" >
<ctrl style="button_ok" id="new_button" x="0" y="-10" posref="TL TL" posparent="parent"
text_y="0" onclick_l="lua" params_l="#new_elt" hardtext="#new_elt_text" />
<group id="mi_group" posparent="new_button" posref="BL BL" x="0" y="0"
sizeparent="parent" sizeref="w5" w="0" h="0" />
<group id="order_group" active="false" posparent="mi_group" posref="BR BL" x="-45" y="-4" w="200" h="27" >
<view type="text" id="element_order" posparent="parent" posref="BL BL"
x="0" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="#elt_order_text" />
<ctrl type="button" id="up_element" button_type="push_button" posparent="element_order"
x="10" y="-1" posref="BR BL" tx_normal="r2ed_up_element.tga" tx_pushed="r2ed_up_element.tga"
tx_over="r2ed_up_element.tga" onclick_l="lua" params_l="#up_elt"
color="#down_up_color" col_over="#over_down_up_color"
/>
<ctrl type="button" id="down_element" button_type="push_button" posparent="up_element"
x="5" y="0" posref="BR BL" tx_normal="r2ed_down_element.tga" tx_pushed="r2ed_down_element.tga"
tx_over="r2ed_down_element.tga" onclick_l="lua" params_l="#down_elt"
color="#down_up_color" col_over="#over_down_up_color"
/>
</group>
<instance template="r2ed_triggers_little_button" id="minimize_elements" x="-17" y="-10" posparent="parent" posref="TR TR"
onclick_l="lua" params_l="#max_min_elts" active="false"
icon="r2ed_triggers_minimize.tga" icon_over="r2ed_triggers_minimize.tga" icon_pushed="r2ed_triggers_minimize.tga"
color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
<instance template="r2ed_triggers_little_button" id="maximize_elements" x="-17" y="-10" posparent="parent" posref="TR TR"
onclick_l="lua" params_l="#max_min_elts" active="false"
icon="r2ed_triggers_maximize.tga" icon_over="r2ed_triggers_maximize.tga" icon_pushed="r2ed_triggers_maximize.tga"
color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
<group id="elts_list_border" posparent="parent" posref="TL TL" x="0" y="-40" sizeref="wh" w="0" h="-55">
<group id="crop" posparent="parent" posref="TL TL" x="0" y="0" sizeref="wh" w="-17" h="0" />
<group id="elts_list_gr" posparent="crop" posref="TL TL" x="0" y="0" sizeref="w" w="0" child_resize_h="true"
child_resize_hmargin="1" max_sizeparent="crop" max_sizeref="h" max_h="0" >
<group id="elements_list" type="list" posparent="parent" posref="TL TL" x="0" y="0" sizeparent="parent" sizeref="wh" w="0" h="0" >
</group>
</group>
<ctrl style="skin_scroll" id="scroll_objects" align="T" target="elts_list_gr" posparent="crop" posref="TR TR"
x="11" y="0" />
<view type="bitmap" id="sep_top" posparent="crop" posref="TL TL" sizeparent="crop" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_left" posparent="crop" posref="TL TL" sizeparent="crop" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_right" posparent="crop" posref="BR BR" sizeparent="crop" sizeref="h" h="0" w="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_bottom" posparent="crop" posref="BL BL" sizeparent="crop" sizeref="w" w="0" h="1"
y="0" scale="true" texture="blank.tga" color="120 120 120 255" />
</group>
</group>
</group>
</template>
<!-- main menu button -->
<template name="menu_button_template" keep="true" id="" sizeref="wh" posparent="parent" posref="TL TL"
x="0" y="0" w="0" h="0" params_l="" params_over="" color_text="" >
<group id="#id" x="#x" y="#y" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" h="#h">
<!-- DECORATION -->
<instance template="inner_thin_border_group" />
<view type="bitmap" id="arrow" posref="MR MR" x="-4" texture="W_arrow_down_2.tga" />
<!-- SYSTEM -->
<group id="text_group" posparent="parent" posref="TL TL" sizeref="wh" x="0" w="-17" y="0" h="0" >
<view type="text" id="text" posref="ML ML" x="2" multi_line="false"
auto_clamp="true" over_extend_view_text="true" over_extend_parent_rect="true"
color="#color_text" />
</group>
<ctrl type="button" button_type="push_button" id="select" sizeref="wh" w="0" h="0"
col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua" params_l="#params_l"
onover="lua" params_over="#params_over" />
<view type="bitmap" id="dismatch_filter" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="wh" w="0" h="0"
x="0" scale="false" tile="true" texture="r2ed_dismatch_filter.tga" color="200 200 200 255" />
</group>
</template>
<template name="r2ed_triggers_little_button" keep="true" id="" x="0" y="0" active="true" posref="BL BM" posparent="parent" icon="" icon_over="" icon_pushed="" w="44" h="39" tooltip=""
color="" col_over="" col_pushed="" offset_x = "0" offset_y = "0" onclick_l="" params_l=""
>
<group id="#id" active="#active" x="#x" y="#y" posref="#posref" posparent="#posparent"
child_resize_w="true" child_resize_h="true" child_resize_wmargin="#offset_x" child_resize_hmargin="#offset_y"
onclick_l="" params_l="" >
<group id="button_group" child_resize_w="true" child_resize_h="true" posref="BR BR">
<view type="bitmap" id="bl" color="#color" w="4" h="4" posref="BL BL" texture="r2ed_triggers_little_corner.tga" rot="3"/>
<ctrl type="button" id="button" button_type="push_button" w="#w" h="#h" posref="TR BL" posparent="bl"
tx_normal="#icon" tx_pushed="#icon_pushed" tx_over="#icon_over" tooltip="#tooltip"
color="#color" col_over="#col_over" col_pushed="#col_pushed"
global_color="false" global_color_normal="false" global_color_over="false" global_color_pushed="false"
onclick_l="#onclick_l" params_l="#params_l" over_when_pushed = "false" />
<view type="bitmap" id="bottom" color="#color" scale="true" posparent="button" posref="BL TL" sizeref="w" w="0" h="4" texture="r2ed_triggers_little_border.tga" rot="2"/>
<view type="bitmap" id="top" color="#color" scale="true" posparent="button" posref="TL BL" sizeref="w" w="0" h="4" texture="r2ed_triggers_little_border.tga" rot="0"/>
<view type="bitmap" id="left" color="#color" scale="true" posparent="button" posref="BL BR" sizeref="h" w="4" h="0" texture="r2ed_triggers_little_border.tga" rot="3"/>
<view type="bitmap" id="right" color="#color" scale="true" posparent="button" posref="BR BL" sizeref="h" w="4" h="0" texture="r2ed_triggers_little_border.tga" rot="1"/>
<view type="bitmap" id="tl" color="#color" w="4" h="4" posref="TL BR" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="0"/>
<view type="bitmap" id="tr" color="#color" w="4" h="4" posref="TR BL" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="1"/>
<view type="bitmap" id="br" color="#color" w="4" h="4" posref="BR TL" texture="r2ed_triggers_little_corner.tga" posparent="button" rot="2"/>
</group>
</group>
</template>
<!-- ************************************************************************************************** -->
<!-- ************************************ ACTIVITY SEQUENCE EDITOR ************************************ -->
<!-- ************************************************************************************************** -->
<style style="button_color" type="text_button" button_type="push_button"
tx_normal="w_text_button_pushed" tx_pushed="w_text_button_over" tx_over="w_text_button_pushed"
global_color_normal="false" global_color_over="false" global_color_pushed="false"
text_y="-2" fontsize="10" shadow="true" case_mode="%case_upper" wmargin="8"
text_global_color_normal="true" text_global_color_pushed="true" text_global_color_over="true"
text_color_normal="255 255 255 128" text_color_pushed="255 255 255 255" text_color_over="255 255 255 255"
text_header_color="true" />
<template name="window_sequence_template" new_seq="" new_seq_text="" remove_seq="" open_seq_editor=""
seq_color="" over_seq_color="" repeat_seq="" right_seq="" left_seq="" on_change="" >
<ctrl style="button_ok" id="new_sequence_button" posref="TL TL" x="30" y="-15"
text_y="0" onclick_l="lua" params_l="#new_seq" hardtext="#new_seq_text" />
<group id="sequence_menu" x="30" y="-40" sizeref="wh" w="-60" h="-90" posparent="parent" posref="TL TL" >
<group type="tab" id="sequence_tabs" hide_out_tabs="true" child_resize_w="true"
onchange="lua" onchange_params="#on_change" h="24" posref="TL TL" x="0" y="-4" >
</group>
<view type="bitmap" id="sep_top" active="false" posparent="sequence_tabs" posref="BL TL" sizeparent="parent" sizeref="w" w="0" h="1"
scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_bottom" active="false" posparent="parent" posref="BL BL" sizeparent="parent" sizeref="w" w="0" h="1"
y="0" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_left" active="false" posparent="parent" posref="TL TL" sizeparent="parent" sizeref="h" h="-28" w="1"
y="-28" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
<view type="bitmap" id="sep_right" active="false" posparent="parent" posref="TR TR" sizeparent="parent" sizeref="h" h="-28" w="1"
y="-28" x="0" scale="true" texture="blank.tga" color="120 120 120 255" />
</group>
<ctrl type="button" id="left_sequences" active="false" button_type="push_button" posparent="sequence_menu"
x="-3" y="-4" posref="TL TR" tx_normal="r2ed_left_sequence.tga" tx_pushed="r2ed_left_sequence.tga"
tx_over="r2ed_left_sequence.tga" onclick_l="lua" params_l="#left_seq"
color="#seq_color" col_over="#over_seq_color" />
<ctrl type="button" id="right_sequences" active="false" button_type="push_button" posparent="sequence_menu"
x="3" y="-4" posref="TR TL" tx_normal="r2ed_right_sequence.tga" tx_pushed="r2ed_right_sequence.tga"
tx_over="r2ed_right_sequence.tga" onclick_l="lua" params_l="#right_seq"
color="#seq_color" col_over="#over_seq_color" />
<instance template="r2ed_triggers_button" id="remove_sequence_button" active="false"
onclick_l="lua" params_l="#remove_seq" posparent="parent" posref="BL BL" x="10" y="8"
icon="r2ed_triggers_trash.tga" icon_over="r2ed_triggers_trash.tga" icon_pushed="r2ed_triggers_trash.tga"
color="#seq_color" col_over="#seq_color" col_pushed="#seq_color"/>
<instance template="r2ed_triggers_button" id="edit_sequence" active="false"
onclick_l="lua" params_l="#open_seq_editor" posparent="parent" posref="BR BR" x="-10" y="8"
icon="r2_suspension.tga" icon_over="r2_suspension.tga" icon_pushed="r2_suspension.tga"
color="#seq_color" col_over="#seq_color" col_pushed="#seq_color"/>
<group id="repeat_group" x="0" y="5" sizeparent="parent" active="false" sizeref="w5" w="40" h="20" posparent="edit_sequence" posref="BR BR" >
<instance template="label_toggle_button" id="repeat" posparent="parent"
x="0" y="0" posref="BL BL" w="200" hardtext="uiR2EdRepeatSequence" fontsize="12" y_text="-3"
params_l="#repeat_seq"/>
</group>
</template>
<group type="container" id="r2ed_activities" title="uiR2EDActivitySequenceEditor" global_color="false" line_at_bottom="false"
movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_ACTIVITIES"
on_close="lua" on_close_params="if r2 and r2.Mode == 'Edit' then r2.activities:closeEditor() end" on_deactive="lua" on_deactive_params="if r2 then r2.activities:closeEditor() end"
pop_min_w="405" pop_min_h="231" w="420" h="565" pop_max_w="700" pop_max_h="800"
savable="true"
>
<group id="header_opened" x="0" y="0" w="300" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="header_closed" x="0" y="0" w="700" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<instance template="window_sequence_template" new_seq="r2.activities:newSequenceInst()" new_seq_text="New sequence"
remove_seq="r2.activities:removeSequenceInst()" seq_color="200 80 80 255" over_seq_color="255 120 120 255"
open_seq_editor="r2.activities:openSequenceEditor()"
repeat_seq="r2.activities:repeatSequence()" right_seq="r2.activities:rightSequenceUI()" left_seq="r2.activities:leftSequenceUI()"
on_change="r2.activities:showSequencesUI()" />
</group>
</group>
<tree node="r2ed_activities">
</tree>
<group type="container" id="r2ed_edit_activity_sequence" active="false" title="uiR2EDActivitySequenceProp" global_color="false" line_at_bottom="false"
movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_ACTIVITIES"
on_close="lua" on_close_params="" pop_min_w="340" pop_min_h="95" pop_max_w="340" pop_max_h="95" w="340" h="95"
>
<!--
<group id="header_opened" x="0" y="0" w="340" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
-->
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<instance template="back_widget" id="back" x="0" y="-7" sizeref="wh" w="0" h="-7" color="255 150 0 255" texture="r2ed_triggers_gray.tga" />
<instance template="h_label_edit_box" id="sequence_name" y="-25" x="15" posparent="parent" posref="TL TL"
hardtext="uiR2EdSequenceName" w="290" w_label="105" w_box="185" fontsize="12" max_num_chars="15"
params="r2.activities:setSequenceName()" on_focus_lost_params="" />
</group>
</group>
<tree node="r2ed_edit_activity_sequence">
</tree>
<!-- ************************************************************************************************** -->
<!-- ******************************************* EDIT ACTIVITY *************************************** -->
<!-- ************************************************************************************************** -->
<template name="back_widget" posref="TL TL" x="0" y="0" w="0" h="0" id="" posparent="parent" sizeref="wh"
keep="true" color="" texture="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<group id="bg" sizeref="hw" h="0" w="0" />
<view type="bitmap" id="back" color="#color" scale="true" posparent="bg" posref="MM MM" sizeref="hw" h="0" w="0" texture="#texture" inherit_gc_alpha="false"/>
</group>
</template>
<!-- horizontal label/combo box template -->
<template name="h_label_combo_box_resize" keep="true" active="true" id="" x="0" y="0" w="195"
sizeref="w" w_label="" w_combo="" posparent="" posref="" hardtext=""
on_change_params="">
<group id="#id" active="#active" sizeref="#sizeref" x="#x" y="#y" w="#w" h="20" posparent="#posparent" posref="#posref" >
<!-- label -->
<group id="label" w="#w_label" h="20" x="0" y="0" posref="TL TL" posparent="parent" >
<view type="text" id="name_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="#hardtext" />
</group>
<!-- combo box -->
<group type="combo_box" id="combo_box" sizeref="w" w="#w_combo" h="20" x="#w_label" y="0" posref="TL TL" posparent="parent"
linked_to_db="false" on_change="lua" on_change_params="#on_change_params" >
<instance template="r2ed_combo_box" />
</group>
</group>
</template>
<template name="template_edit_activity" keep="true" sizeref="w" active="false" w="0" h="200" id=""
col_pushed="200 120 80 255" >
<group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL" >
<instance template="back_widget" id="back" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
<ctrl type="button" button_type="toggle_button" id="select" sizeref="wh" w="0" h="0"
onclick_l="lua" params_l="r2.activities:closeElementEditor()" />
<group id="activity_name" posparent="parent" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
<view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="" />
</group>
<view type="bitmap" id="sep" posparent="activity_name" posref="BL BL" sizeref="w" w="-20" h="1"
x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
<instance template="template_label_menu_resize" id="activity" sizeref="w" w="-50" h="20" x="18" y="-20" y_text="0"
posparent="activity_name" posref="BL TL" w_label="80" w_combo="-80" hardtext="uiR2EdActivity"
on_change_params="r2.activities:initActivityMenu()"/>
<group id="limit_group" posparent="activity" posref="BL TL" sizeref="w" child_resize_h="true" x="0" w="0" y="-20" h="0" >
<instance template="h_label_combo_box_resize" id="time_limit" sizeref="w" h="20" posparent="parent"
posref="TL TL" w="0" w_label="80" w_combo="-80" x="0" y="0" hardtext="uiR2EdTimeLimit"
on_change_params="r2.activities:setTimeLimit()" />
<group id="certain_time" active="false" posparent="time_limit" sizeref="w" posref="BL TL" w="-80" h="20" x="80" y="-5" >
<instance template="template_menu_label" id="hours" sizeref="w3" w="-3" h="20" x="0" y="0" y_text="0"
posparent="parent" posref="TL TL" w_label="-14" w_combo="7" hardtext="uiR2EdShortHours"
on_change_params="r2.activities:initTimeMenu('r2.activities:activityForHours', true)"/>
<instance template="template_menu_label" id="minutes" sizeref="wh" w="10" h="0" x="2" y="0" y_text="0"
posparent="hours" posref="BR BL" w_label="-14" w_combo="7" hardtext="uiR2EdShortMinutes"
on_change_params="r2.activities:initTimeMenu('r2.activities:activityForMinutes', false)"/>
<instance template="template_menu_label" id="seconds" sizeref="wh" w="0" h="0" x="5" y="0" y_text="0"
posparent="minutes" posref="BR BL" w_label="-14" w_combo="7" hardtext="uiR2EdShortSeconds"
on_change_params="r2.activities:initTimeMenu('r2.activities:activityForSeconds', false)"/>
</group>
</group>
<group id="road_count_group" posparent="limit_group" posref="BL TL" sizeref="w" child_resize_h="true" x="0" w="0" y="-20" h="0" tooltip="uiR2EdRoadCountLimitTooltip">
<instance template="h_label_combo_box_resize" id="road_count_limit" sizeref="w" h="20" posparent="parent"
posref="TL TL" w="0" w_label="80" w_combo="-80" x="0" y="0" hardtext="uiR2EdRoadCountLimit"
on_change_params="r2.activities:setRoadCountLimit()" />
<group id="certain_count" active="false" posparent="road_count_group" sizeref="w" posref="BL TL" w="-80" h="20" x="80" y="-5" >
<instance template="template_menu_label" id="hours" sizeref="w3" w="-3" h="20" x="0" y="0" y_text="0"
posparent="parent" posref="TL TL" w_label="-14" w_combo="7" hardtext="uiR2EdShortHours"
on_change_params="r2.activities:initRoadCountMenu()"/>
</group>
</group>
<group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
<instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
onclick_l="lua" params_l="r2.activities:removeElementInst()"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
</group>
</template>
<group type="menu" id="r2ed_triggers_menu" extends="base_menu" mouse_pos="false">
</group>
<!-- ************************************************************************************************** -->
<!-- ************************************ CHAT SEQUENCE EDITOR ************************************ -->
<!-- ************************************************************************************************** -->
<group type="container" id="r2ed_dialogs" title="uiR2EDChatSequenceEditor" global_color="false" line_at_bottom="false"
movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:R2_DIALOGS"
on_close="lua" on_close_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:closeEditor() end"
on_deactive="lua" on_deactive_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:closeEditor() end"
on_active="lua" on_active_params="if r2 and r2.Mode == 'Edit' then r2.dialogs:checkDialog() end"
pop_min_w="350" pop_min_h="231" pop_max_h="800" w="400" h="565" pop_max_w="700"
>
<group id="header_opened" x="0" y="0" h="16" w="2048" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<instance template="template_label_menu" id="dialogMenu" w="250" h="20" x="15" y="-15" y_text="0"
posparent="parent" posref="TL TL" w_label="-20" w_combo="40" hardtext="uiR2EDDialogList"
on_change_params="r2.dialogs:initDialogsMenu()"/>
<instance template="sequence_elements_template" id="sequence_elts" x="0" y="-10" h="-65" posparent="dialogMenu" posref="BL TL"
new_elt="r2.dialogs:newElementInst()" new_elt_text="uiR2EdNewChat" elt_order_text="chat order" up_elt="r2.dialogs:upElementInst()"
down_elt="r2.dialogs:downElementInst()" max_min_elts="r2.dialogs:maximizeMinimizeElements()"
down_up_color="120 170 140 255" over_down_up_color="200 255 200 255"/>
<group id="repeat_group" x="15" y="10" sizeparent="parent" active="true" sizeref="w5" w="40" h="20" posparent="parent" posref="BL BL" >
<instance template="label_toggle_button" id="repeat" posparent="parent"
x="0" y="0" posref="BL BL" w="200" hardtext="Repeat dialog" fontsize="12" y_text="-3"
params_l="r2.dialogs:repeatSequence()"/>
</group>
</group>
</group>
<tree node="r2ed_dialogs">
</tree>
<group type="container" id="r2ed_edit_chat_sequence" active="false" title="uiR2EDChatSequenceProp" global_color="false" line_at_bottom="false"
movable="true" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:CHAT_SEQUENCES"
on_close="lua" on_close_params="" pop_min_w="300" pop_min_h="100" pop_max_w="300" pop_max_h="100" w="300" h="100"
>
<group id="header_opened" x="0" y="0" w="300" h="16" posref="TL TL"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:base_menu_with_color"
>
</group>
<group id="content" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" >
<instance template="back_widget" id="back" x="0" y="-7" sizeref="wh" w="0" h="-7" color="0 255 0 255" texture="r2ed_triggers_gray.tga" />
<instance template="h_label_edit_box" id="sequence_name" y="-25" x="15" posparent="parent" posref="TL TL"
hardtext="uiR2EdSequenceName" w="205" w_label="105" w_box="100" fontsize="12" max_num_chars="5"
params="r2:setSequenceName('r2ed_chat_sequence', 'r2ed_edit_chat_sequence')"
on_focus_lost_params="r2:setSequenceName('r2ed_chat_sequence', 'r2ed_edit_chat_sequence')" />
</group>
</group>
<tree node="r2ed_edit_chat_sequence">
</tree>
<!-- ************************************************************************************************** -->
<!-- ******************************************* EDIT CHAT ******************************************* -->
<!-- ************************************************************************************************** -->
<!-- horizontal label/edit box template/scroll -->
<template name="h_label_edit_box_scroll" keep="true" active="true" id="" sizeparent="" sizeref="" h="20" x="0" y="0" posparent="" posref="" hardtext=""
w="" w_label="" w_box="" fontsize="12" max_num_chars="100" h_min=""
onenter="lua" params="" onchange="lua" onchange_params="" on_focus_lost="lua" on_focus_lost_params="" >
<group id="#id" active="#active" sizeparent="#sizeparent" sizeref="#sizeref" y="#y" x="#x" w="#w" h="#h" posparent="#posparent" posref="#posref" >
<!-- label -->
<group id="label" w="#w_label" h="20" x="0" y="0" posref="TL TL" posparent="parent" >
<view type="text" id="name_text" posref="BL BL" x="0" y="0" color="255 255 255 255"
global_color="true" fontsize="#fontsize" shadow="true" hardtext="#hardtext" />
</group>
<!-- Edit box -->
<group id="back_edit_box" posparent="parent" sizeref="w" posref="TL TL" x="#w_label" y="0" h="#h" w="#w_box">
<instance template="inner_thin_border_group" />
</group>
<group id="crop_box_ed" posparent="back_edit_box" posref="TL TL" x="0" y="0" sizeref="wh" w="10" h="0">
<group type="edit_box" id="edit_box_group" posparent="parent" posref="TL TL" x="0" y="0" sizeref="w"
child_resize_h="true" w="-10" child_resize_hmargin="#h_min" max_sizeparent="crop_box_ed" max_sizeref="h"
max_h="0" want_return="false"
onenter="#onenter" params="#params" onchange="#onchange" onchange_params="#onchange_params"
on_focus_lost="#on_focus_lost" on_focus_lost_params="#on_focus_lost_params"
prompt="" enter_loose_focus="true" >
<view type="text" id="edit_text" x="4" y="-5" posref="TL TL" multi_line="true"
fontsize="12" shadow="true" hardtext="" global_color="false"/>
</group>
<ctrl style="skin_scroll" id="edit_box_scroll_ed" align="B" target="edit_box_group"
posparent="crop_box_ed" posref="TR TR" x="0" y="0" />
</group>
</group>
</template>
<template name="template_edit_chat" keep="true" sizeref="w" active="false" w="0" h="315" id=""
col_pushed="120 150 140 255" >
<group id="#id" active="#active" x="0" y="0" sizeref="#sizeref" w="#w" h="#h" posref="TL TL"
group_onclick_l="lua" group_params_l="r2.dialogs:closeElementEditor()"
on_deactive="lua" on_deactive_params="r2.dialogs:updateSaysWhat()" >
<instance template="back_widget" id="back" x="0" y="0" sizeref="wh" w="0" h="0" color="#col_pushed" texture="r2ed_triggers_blank.tga" />
<group id="chat_name" posparent="parent" posref="TL TL" sizeref="w" x="5" w="0" y="0" h="20" >
<view type="text" id="name" posref="BL BL" x="5" y="0" color="255 255 255 255"
global_color="true" fontsize="12" shadow="true" hardtext="" />
</group>
<view type="bitmap" id="sep" posparent="chat_name" posref="BL BL" sizeref="w" w="-20" h="1"
x="5" y="-2" scale="true" texture="blank.tga" color="200 200 200 200" />
<group id="after_how_long" posparent="chat_name" posref="BL TL" sizeref="w" w="-20" h="20" x="17" y="-20" >
<instance template="template_label_menu" id="minutes" w="130" h="20" x="0" y="0" y_text="0"
posparent="parent" posref="TL TL" w_label="10" w_combo="-20" hardtext="uiR2EdAfterHowLong"
on_change_params="r2.dialogs:initTimeMenu('r2.dialogs:chatAfterMinutes', false)"/>
<instance template="template_label_menu" id="seconds" w="100" h="20" x="2" y="0" y_text="0"
posparent="minutes" posref="BR BL" w_label="-10" w_combo="20" hardtext="uiR2EdShortMinutes"
on_change_params="r2.dialogs:initTimeMenu('r2.dialogs:chatAfterSeconds', false)"/>
<view type="text" id="seconds_label" x="2" y="0" posparent="seconds" posref="BR BL"
color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="uiR2EdShortSeconds" />
</group>
<instance template="template_label_menu_resize" id="whoMenu" sizeref="wh" w="-25" h="0" x="0" y="-15" y_text="0"
posparent="after_how_long" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdWho"
on_change_params="r2.dialogs:initWhoMenu('r2.dialogs:setWho', false)"/>
<instance template="h_label_edit_box_scroll" id="says" sizeref="w" h="100" w="10" y="-15" x="0" posparent="whoMenu" posref="BL TL"
hardtext="uiR2EdSaysWhat" w_label="75" w_box="-85" fontsize="12" max_num_chars="1000" h_min="85"
multi_line="true" on_focus_lost_params="" />
<instance template="template_label_menu_resize" id="toWhoMenu" sizeref="w" w="-10" h="20" x="0" y="-15" y_text="0"
posparent="says" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdToWho"
on_change_params="r2.dialogs:initWhoMenu('r2.dialogs:setToWho', true)"/>
<instance template="template_label_menu_resize" id="emote" sizeref="w" w="0" h="20" x="0" y="-15" y_text="0"
posparent="toWhoMenu" posref="BL TL" w_label="75" w_combo="-75" hardtext="uiR2EdEmote"
on_change_params="r2.dialogs:initEmoteMenu()"/>
<group id="element_manage" active="true" posparent="parent" sizeref="w" w="0" h="20" posref="BL BL" x="0" y="0">
<instance template="r2ed_triggers_little_button" id="remove_element" x="1" y="1" posparent="parent" posref="BL BL"
onclick_l="lua" params_l="r2.dialogs:removeElementInst()"
icon="r2ed_triggers_little_trash.tga" icon_over="r2ed_triggers_little_trash.tga" icon_pushed="r2ed_triggers_little_trash.tga"
color="#col_pushed" col_over="#col_pushed" col_pushed="#col_pushed"/>
</group>
<!-- VL -->
<group id="break_group" x="-150" y="0" sizeparent="parent" active="true" sizeref="w5" w="10" h="20" posparent="parent" posref="BR BL" >
<instance template="label_toggle_button" id="break" posparent="parent"
x="1" y="3" posref="BL BL" w="200" hardtext="uiR2EdBreakChat" fontsize="12" y_text="-3"
params_l="r2.dialogs:setChatBreak()"/>
</group>
</group>
</template>
<!-- *********************** -->
<!-- MINI ACTIVITIY VIEW -->
<!-- *********************** -->
<define id="r2ed_max_num_mini_activities" value="14"/>
<!-- mini activity template -->
<template name="mini_activity" active="true" id="" x="0" y="0" posref="BL BM" posparent="parent" >
<group id="#id" active="#active" x="#x" y="#y" child_resize_h="true" child_resize_w="true"
child_resize_wmargin="20" posparent="#posparent" posref="#posref" >
<instance template="r2ed_triggers_little_button" id="activity" x="2" y="0" h="50"
posparent="parent" posref="TL TL"
onclick_l="lua" params_l="r2.miniActivities:openActivity()"
onclick_r="lua" params_r=""
icon="" icon_over="" icon_pushed=""
color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255"/>
<view type="text" id="activity_name" active="true" posparent="activity" posref="BR BL"
x="4" y="0" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="" />
</group>
</template>
<group id="r2ed_mini_activity_view" active="false" posparent="r2ed_contextual_toolbar_new" posref="TL BL" x="0" y="3" child_resize_w="true" child_resize_h="true">
<instance template="r2ed_triggers_little_button" id="open_activities" x="0" y="0"
posref="TL TL" onclick_l="lua" params_l="r2.activities:openEditor()"
icon="r2ed_open_activities.tga" icon_over="r2ed_open_activities.tga" icon_pushed="r2ed_open_activities.tga"
color="255 255 255 255" col_over="255 255 255 255" col_pushed="255 255 255 255" />
<view type="text" id="no_activity" active="true" posparent="open_activities" posref="BL TL"
x="0" y="-2" color="255 255 255 255" global_color="true" fontsize="12" shadow="true" hardtext="" />
<group id="mini_activities" align="T" posparent="no_activity" posref="BL TL" child_resize_h="true" child_resize_w="true">
<vector template="mini_activity" _size="%r2ed_max_num_mini_activities"
_firstpos="TL TL" _nextpos="BL TL" id="$i" active="true"
/>
</group>
</group>
<tree node="r2ed_mini_activity_view">
</tree>
<group type="menu" id="r2ed_chat_sequences_menu" extends="base_menu" mouse_pos="false">
</group>
</interface_config>

View file

@ -2,39 +2,39 @@
------------------------------------------------------------------------------------------------------------
-- create the game namespace without reseting if already created in an other file.
if (game==nil) then
game= {};
game = {}
end
------------------------------------------------------------------------------------------------------------
--
function game:getMilkoTooltipWithKey(prop, tooltip, tooltip_pushed, name, param)
local tt;
local tt
-- Check if button is toggled and choose the good tooltip
if (prop ~= '' and tooltip_pushed ~= '') then
local db = getDbProp(prop);
local db = getDbProp(prop)
if (db == 1) then
tt = tooltip_pushed;
tt = tooltip_pushed
else
tt = tooltip;
tt = tooltip
end
else
tt = tooltip;
end
-- Get key shortcut
local text = i18n.get(tt);
local key = runExpr('getKey(\'' .. name .. '\',\'' .. param .. '\',1)');
local text = i18n.get(tt)
local key = runExpr('getKey(\'' .. name .. '\',\'' .. param .. '\',1)')
if (key ~= nil and key ~= '') then
key = ' @{2F2F}(' .. key .. ')';
text = concatUCString(text, key);
key = ' @{2F2F}(' .. key .. ')'
text = concatUCString(text, key)
end
setContextHelpText(text);
setContextHelpText(text)
end
function game:taskbarDisableTooltip(ui)
local uiGroup = getUI(ui);
disableContextHelpForControl(uiGroup);
local uiGroup = getUI(ui)
disableContextHelpForControl(uiGroup)
end

View file

@ -1091,7 +1091,10 @@
<instance template="win_button" id="webig" color="UI:SAVE:WIN:COLORS:COM" text="uimwWebIG" posparent="fame" posref="BL TL" x="0" y="-4"
pushflag="UI:VARIABLES:ISACTIVE:WEBIG" win_name="webig" />
<instance template="win_button" id="appzone" color="UI:SAVE:WIN:COLORS:COM" text="uimwAppZone" posparent="webig" posref="BL TL" x="0" y="-4"
pushflag="UI:VARIABLES:ISACTIVE:APPZONE" win_name="appzone" />
</group>
<view type="bitmap" id="com_ico_back" posparent="communication" posref="TL TL" x="-22" y="22" texture="W_slot_categorie.tga" global_color="false" />
<view type="bitmap" id="com_ico" posparent="com_ico_back" posref="MM MM" x="2" y="-2" texture="spe_com.tga" global_color="false" />

View file

@ -176,11 +176,11 @@ function webig:doRemoveDbSheetQuantity(sheet_list, ctrl)
if new_quantity >= current_quantity then
webig:deleteItem(db..":"..ctrl)
else
addDbProp(db..":"..ctrl..":QUANTITY", current_quantity-new_quantity)
addDbProp(db..":"..ctrl..":QUANTITY", new_quantity)
end
end
--assert(nil, "RELOADABLE SCRIPT");
--assert(nil, "RELOADABLE SCRIPT")