Add missing browser css. Restore login window layout

ryzomclassic-develop
kaetemi 3 years ago
parent d30a80acea
commit cac99dc9ab
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -0,0 +1,147 @@
html {
background-color: rgba(0, 0, 0, 1.0);
color: rgba(210, 210, 210, 1.0);
font-size: 12px;
font-style: normal;
font-weight: normal;
text-shadow: none;
}
address, article, aside, blockquote, details, dialog, dd, div, dl, dt,
fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6,
header, hgroup, hr, li, main, nav, ol, p, pre, section, table, ul {
display: block;
}
table {
display: table;
}
input,. table, tr, td, th, textarea {
color: inherit;
font-weight: inherit;
font-style: inherit;
font-size: inherit;
text-shadow: inherit;
}
input, textarea {
text-shadow: 1px 1px #000;
}
a {
color: rgba(240, 155, 100, 1.0);
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
color: rgba(255, 255, 255, 1.0);
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
h3 {
font-size: 1.17em;
}
h4 {
font-size: 1.0em;
}
h5 {
font-size: 0.83em;
}
h6 {
font-size: 0.67em;
}
pre {
font-family: monospace;
}
/* th { text-align:center; } overrides <td align=".."> property */
th {
font-weight: bold;
}
del {
text-decoration: line-through;
}
u {
text-decoration: underline;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
small {
font-size: smaller;
}
dt {
font-weight: bold;
}
hr {
color: rgb(120, 120, 120);
}
/* td { padding: 1px; } overrides <td cellpadding=".."> attribute */
/* table { border-spacing: 2px; } overrides <td cellspacing=".."> attribute */
table {
border-collapse: separate;
}
meter::-webkit-meter-bar,
meter::-webkit-optimum-value,
meter::-webkit-suboptimum-value,
meter::-webkit-even-less-good-value {
background: none;
}
meter::-webkit-meter-bar {
background-color: rgb(100, 100, 100);
width: 5em;
height: 1em;
}
meter::-webkit-meter-optimum-value {
background-color: rgb(80, 220, 80);
}
meter::-webkit-meter-suboptimum-value {
background-color: rgb(220, 220, 80);
}
meter::-webkit-meter-even-less-good-value {
background-color: rgb(220, 80, 80);
}
progress::-webkit-progress-bar,
progress::-webkit-progress-value {
background: none;
}
progress::-webkit-progress-bar {
background-color: rgb(230, 230, 230);
width: 10em;
height: 1em;
}
progress::-webkit-progress-value {
background-color: rgb(0, 100, 180);
}

@ -31,22 +31,31 @@
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-1" /> <view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-1" />
<!--
<instance template="log_box" id="window" y="-8" posref="MM MM" w="1024" h="768" color="0 0 0 0"/> <instance template="log_box" id="window" y="-8" posref="MM MM" w="1024" h="768" color="0 0 0 0"/>
--> <!--
<view type="bitmap" posref="MM MM" id="log" texture="launcher_log.tga" global_color="false" render_layer="-1" /> <view type="bitmap" posref="MM MM" id="log" texture="launcher_log.tga" global_color="false" render_layer="-1" />
-->
<!-- <!--
<view type="bitmap" id="jena" posparent="window" posref="MR MR" x="-64" texture="log_jena.tga" global_color="false" render_layer="-1" /> <view type="bitmap" id="jena" posparent="window" posref="MR MR" x="-64" texture="log_jena.tga" global_color="false" render_layer="-1" />
--> -->
<!-- Login Edit_Boxes --> <!-- Login Edit_Boxes -->
<!--
<view type="text" id="txt_log" x="0" posref="TM TM" posparent="window" hardtext="uiLogin" fontsize="10" y="-200" color="255 255 255 255" /> <view type="text" id="txt_log" x="0" posref="TM TM" posparent="window" hardtext="uiLogin" fontsize="10" y="-200" color="255 255 255 255" />
<view type="text" id="txt_pas" posparent="txt_log" posref="TM TM" hardtext="uiPassword" fontsize="10" y="-48" color="255 255 255 255" /> <view type="text" id="txt_pas" posparent="txt_log" posref="TM TM" hardtext="uiPassword" fontsize="10" y="-48" color="255 255 255 255" />
-->
<instance template="edit_box_log" id="eb_login" posparent="txt_log" posref="BM TM" w="240" h="26" fontsize="12" x="0" y="-4"
text_ref="BM BM" text_y="0"
reset_focus_on_hide="false" max_historic="0"
onenter="set_keyboard_focus" params="target=ui:login:checkpass:content:submit_gr:eb_password:eb|select_all=false"
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" />
<instance template="edit_box_log" id="eb_password" posparent="txt_pas" posref="BM TM" w="240" h="26" fontsize="12" x="0" y="-4"
text_ref="BM BM" text_y="0"
reset_focus_on_hide="false" max_historic="0" entry_type="password"
onenter="on_login" params=""
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="60" color="135 243 28 255" />
<!--
<view type="text" id="tit_login" posparent="log" posref="TL BL" hardtext="uiLogin" fontsize="24" x="62" y="-166" color="208 212 182 255" /> <view type="text" id="tit_login" posparent="log" posref="TL BL" hardtext="uiLogin" fontsize="24" x="62" y="-166" color="208 212 182 255" />
<instance template="edit_box_widget_2" id="eb_login" posparent="log" posref="TM BM" w="292" h="48" fontsize="26" x="-4" y="-229" <instance template="edit_box_widget_2" id="eb_login" posparent="log" posref="TM BM" w="292" h="48" fontsize="26" x="-4" y="-229"
@ -62,46 +71,37 @@
reset_focus_on_hide="false" max_historic="0" entry_type="password" reset_focus_on_hide="false" max_historic="0" entry_type="password"
onenter="on_login" params="" onenter="on_login" params=""
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" /> prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" />
-->
<!--
<ctrl style="log_std_but" id="but_log" posparent="eb_password" posref="TM TM" y="-32" onclick_l="on_login" hardtext="uiOnConnect" /> <ctrl style="log_std_but" id="but_log" posparent="eb_password" posref="TM TM" y="-32" onclick_l="on_login" hardtext="uiOnConnect" />
-->
<!--
<ctrl type="button" button_type="push_button" id="but_log" posref="BR BR" x="-304" y="157" <ctrl type="button" button_type="push_button" id="but_log" posref="BR BR" x="-304" y="157"
tx_normal="log_over.tga" tx_over="log_over.tga" tx_pushed="log_over.tga" tx_normal="log_over.tga" tx_over="log_over.tga" tx_pushed="log_over.tga"
color="255 255 255 0" col_over="255 255 255 255" col_pushed="255 255 255 0" color="255 255 255 0" col_over="255 255 255 255" col_pushed="255 255 255 0"
onclick_l="on_login" render_layer="-1" /> onclick_l="on_login" render_layer="-1" />
<view type="text" id="txt_log" posparent="but_log" posref="MM MM" hardtext="uiOnLogin" shadow="true" fontsize="16" y="0" color="208 212 182 255" /> <view type="text" id="txt_log" posparent="but_log" posref="MM MM" hardtext="uiOnLogin" shadow="true" fontsize="16" y="0" color="208 212 182 255" />
-->
<!-- Boxes Web Shortcuts <!-- Boxes Web Shortcuts
<instance template="server_box" id="web_win" posparent="eb_login" posref="BL TL" w="568" h="202" y="-24" /> --> <instance template="server_box" id="web_win" posparent="eb_login" posref="BL TL" w="568" h="202" y="-24" /> -->
<!-- Create Account --> <!-- Create Account -->
<!--
<ctrl style="log_std_but" id="but_create_account" posparent="but_log" posref="BM TM" y="-28" <ctrl style="log_std_but" id="but_create_account" posparent="but_log" posref="BM TM" y="-28"
onclick_l="on_create_account" hardtext="uiCreateAccount" /> onclick_l="on_create_account" hardtext="uiCreateAccount" />
-->
<!-- Edit Account --> <!-- Edit Account -->
<!--
<ctrl style="log_std_but" id="but_edit_account" posparent="but_create_account" posref="BM TM" y="-8" <ctrl style="log_std_but" id="but_edit_account" posparent="but_create_account" posref="BM TM" y="-8"
onclick_l="open_url" params_l="cfg_EditAccountURL" hardtext="uiEditAccount" /> onclick_l="open_url" params_l="cfg_EditAccountURL" hardtext="uiEditAccount" />
-->
<!-- Upgrade Account --> <!-- Upgrade Account -->
<!-- <ctrl style="log_std_but" id="but_upgrade_account" posparent="but_create_account" posref="BM TM" y="-8" <!-- <ctrl style="log_std_but" id="but_upgrade_account" posparent="but_create_account" posref="BM TM" y="-8"
onclick_l="open_url" params_l="cfg_EditAccountURL" hardtext="uiUpgradeAccount" /> --> onclick_l="open_url" params_l="cfg_EditAccountURL" hardtext="uiUpgradeAccount" /> -->
<!-- Forget Password --> <!-- Forget Password -->
<!--
<ctrl style="log_std_but" id="but_forget_pwd" posparent="but_edit_account" posref="BM TM" y="-8" <ctrl style="log_std_but" id="but_forget_pwd" posparent="but_edit_account" posref="BM TM" y="-8"
onclick_l="open_url" params_l="cfg_ForgetPwdURL" hardtext="uiForgetPwd" /> onclick_l="open_url" params_l="cfg_ForgetPwdURL" hardtext="uiForgetPwd" />
-->
<!-- Free Trial <!-- Free Trial
<ctrl style="log_spe_but" id="but_free_trial" posparent="but_forget_pwd" posref="BL TL" y="-8" <ctrl style="log_spe_but" id="but_free_trial" posparent="but_forget_pwd" posref="BL TL" y="-8"
@ -109,11 +109,8 @@
--> -->
<!-- Login Support --> <!-- Login Support -->
<!--
<ctrl style="log_std_but" id="but_login_support" posparent="but_forget_pwd" posref="BM TM" y="-8" <ctrl style="log_std_but" id="but_login_support" posparent="but_forget_pwd" posref="BM TM" y="-8"
onclick_l="open_url" params_l="cfg_LoginSupportURL" hardtext="uiLoginSupport" /> onclick_l="open_url" params_l="cfg_LoginSupportURL" hardtext="uiLoginSupport" />
-->
<!-- Scan Data --> <!-- Scan Data -->
<!-- <!--
<ctrl style="log_spe_but" id="but_scan_data" posparent="but_login_support" posref="BL TL" y="-8" <ctrl style="log_spe_but" id="but_scan_data" posparent="but_login_support" posref="BL TL" y="-8"
@ -138,22 +135,25 @@
<!-- RESOLUTION ET LEVEL OF DETAILS --> <!-- RESOLUTION ET LEVEL OF DETAILS -->
<instance template="server_box" id="res_win" posparent="window" posref="TL TL" w="276" h="24" y="-733" x="10"/> <instance template="server_box" id="res_win" posparent="window" posref="TL TL" w="276" h="24" y="-733" x="10"/>
<instance template="server_box" id="lod_win" posparent="res_win" posref="TR TL" w="276" h="24" x="16" /> <instance template="server_box" id="lod_win" posparent="res_win" posref="TR TL" w="276" h="24" x="16" />
<instance template="server_box" id="ver_win" posparent="lod_win" posref="TR TL" w="276" h="24" x="26" />
<!-- Game Configuration --> <!-- Game Configuration -->
<!-- <ctrl style="log_std_but" id="but_game_configuration" posparent="lod_win" posref="TR TL" x="26" onclick_l="on_game_configuration" hardtext="uiGameConfiguration" /> --> <!-- <ctrl style="log_std_but" id="but_game_configuration" posparent="lod_win" posref="TR TL" x="26" onclick_l="on_game_configuration" hardtext="uiGameConfiguration" /> -->
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
<!--
<ctrl style="log_button" id="but_exit" posparent="windows" posref="BR BR" y="6" onclick_l="login_quit" hardtext="uiExitLogin" /> <ctrl style="log_button" id="but_exit" posparent="windows" posref="BR BR" y="6" onclick_l="login_quit" hardtext="uiExitLogin" />
--> <!--
<ctrl type="button" button_type="push_button" id="but_quit" posref="TR TR" x="-30" y="-30" <ctrl type="button" button_type="push_button" id="but_quit" posref="TR TR" x="-30" y="-30"
tx_normal="quit_over.tga" tx_over="quit_over.tga" tx_pushed="quit_over.tga" tx_normal="quit_over.tga" tx_over="quit_over.tga" tx_pushed="quit_over.tga"
color="255 255 255 0" col_over="255 255 255 255" col_pushed="255 255 255 0" color="255 255 255 0" col_over="255 255 255 255" col_pushed="255 255 255 0"
onclick_l="login_quit" /> onclick_l="login_quit" />
-->
<!-- Textes --> <!-- Textes -->
<view type="text" id="title_res" posparent="res_win" posref="TL BL" y="2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiLOGResolution" /> <view type="text" id="title_res" posparent="res_win" posref="TL BL" y="2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiLOGResolution" />
<view type="text" id="title_lod" posparent="lod_win" posref="TL BL" y="2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiLOGLod" /> <view type="text" id="title_lod" posparent="lod_win" posref="TL BL" y="2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiLOGLod" />
<view type="text" id="title_ver" posparent="ver_win" posref="TL BL" y="2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiClientVersion" />
<view type="text" id="res_value" posparent="res_win" posref="MM MM" y="0" color="135 243 28 255" fontsize="10" shadow="true" hardtext="uiResValue" /> <view type="text" id="res_value" posparent="res_win" posref="MM MM" y="0" color="135 243 28 255" fontsize="10" shadow="true" hardtext="uiResValue" />
<view type="text" id="lod_value" posparent="lod_win" posref="MM MM" y="0" color="135 243 28 255" fontsize="10" shadow="true" hardtext="uiLodValue" /> <view type="text" id="lod_value" posparent="lod_win" posref="MM MM" y="0" color="135 243 28 255" fontsize="10" shadow="true" hardtext="uiLodValue" />
<view type="text" id="ver_value" posparent="ver_win" posref="MM MM" y="0" color="135 243 28 255" fontsize="10" shadow="true" hardtext="" />
<!-- Boutons Res --> <!-- Boutons Res -->
@ -296,7 +296,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
checkbox_bitmap_pushed="" checkbox_bitmap_pushed=""
checkbox_bitmap_over="" checkbox_bitmap_over=""
background_bitmap_view="" background_bitmap_view=""
home="release.html" home=""
browse_next_time="true" browse_next_time="true"
form_text_area_group="edit_box_widget_multiline" form_text_area_group="edit_box_widget_multiline"
> >
@ -512,7 +512,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
checkbox_bitmap_pushed="" checkbox_bitmap_pushed=""
checkbox_bitmap_over="" checkbox_bitmap_over=""
background_bitmap_view="" background_bitmap_view=""
home="release.html" home=""
browse_next_time="true" browse_next_time="true"
form_text_area_group="edit_box_widget_multiline" form_text_area_group="edit_box_widget_multiline"
> >

@ -185,6 +185,9 @@
<ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewKeyShortcut" <ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewKeyShortcut"
onclick_l="keys_new" /> onclick_l="keys_new" />
<ctrl style="new_element_header" id="save_button" posparent="add_button" posref="ML MR" x="-4" y="0" wmargin="8" hardtext="uiSaveUI"
onclick_l="save_ui" />
</group> </group>
<group id="content" x="0" y="0" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" > <group id="content" x="0" y="0" w="0" child_resize_h="true" child_resize_hmargin="0" posref="TL TL" >

@ -696,15 +696,10 @@
onclick_l="leave_modal" /> onclick_l="leave_modal" />
</group> </group>
<!-- Web box <!-- Web box
<group id="webstart" posref="BR BR" w="200" h="200" active="true" > <group id="webstart" posref="BR BR" w="100" h="60" active="true" >
<group id="content" x="0" y="0" w="200" h="200" posref="TL TL" > <group id="content" x="0" y="0" w="100" h="60" posref="MM MM" >
<group type="html" id="webstart_html" posref="TL TL" <group id="webstart_html" type="html" posref="MM MM"
url="" url=""
title_prefix="uiQuickhelpTitle" title_prefix="uiQuickhelpTitle"
sizeref="wh" x="0" y="0" w="-40" h="-40" sizeref="wh" x="0" y="0" w="-40" h="-40"

@ -376,6 +376,24 @@ function game:bonusMalusSetText(ui, slot, fmt)
end end
end end
------------------------------------------------------------------------------------------------------------
-- Called from c++ to format icon regen timer text
-- timer: number, ie 123, -123
-- dbPath: UI:VARIABLES:BONUS:0
--
-- Activate it in "bonuses" and/or "maluses" xml group.
-- If using color tags, then also set both colors to white
-- regen_text_fct="lua:game:formatRegenTimer"
-- regen_text_color="255 255 255"
-- regen_text_disabled_color="255 255 255"
function game:formatRegenTimer(timer, dbPath)
if timer > 60 then
return string.format("%dm", timer / 60);
else
return string.format("%ds", timer);
end
end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- From given DB vals, compute the 'Xp Bonus' text info -- From given DB vals, compute the 'Xp Bonus' text info
function game:updateXpCatQuantity(textSlot, ui) function game:updateXpCatQuantity(textSlot, ui)
@ -469,7 +487,7 @@ end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- update if needed the ActionHandler and text update from DB -- update if needed the ActionHandler and text update from DB
function game:updateBonusMalusTextSetup() function game:updateBonusMalusTextSetup()
local numLocalBonusMalus= getDefine("num_local_bonus_malus"); local numLocalBonusMalus= tonumber(getDefine("num_local_bonus_malus"));
local uiBonus= getUI('ui:interface:bonus_malus:header_opened:bonus'); local uiBonus= getUI('ui:interface:bonus_malus:header_opened:bonus');
local uiMalus= getUI('ui:interface:bonus_malus:header_opened:malus'); local uiMalus= getUI('ui:interface:bonus_malus:header_opened:malus');
local dbXpCat= "@SERVER:CHARACTER_INFO:XP_CATALYSER:Count"; local dbXpCat= "@SERVER:CHARACTER_INFO:XP_CATALYSER:Count";
@ -658,12 +676,14 @@ function game:updatePlayerBonusMalus()
-- get -- get
local sheet= getDbProp(dbServerBonusBase .. tostring(i) .. ":SHEET" ); local sheet= getDbProp(dbServerBonusBase .. tostring(i) .. ":SHEET" );
local disabled= getDbProp(dbServerBonusBase .. tostring(i) .. ":DISABLED" ); local disabled= getDbProp(dbServerBonusBase .. tostring(i) .. ":DISABLED" );
local timer = getDbProp(dbServerBonusBase .. tostring(i) .. ":DISABLED_TIME" );
if(sheet~=0) then if(sheet~=0) then
mustShowBonus= true; mustShowBonus= true;
end end
-- copy (to index shifted if needed) -- copy (to index shifted if needed)
setDbProp(dbLocalBonusBase .. tostring(destIndex) .. ":SHEET", sheet ); setDbProp(dbLocalBonusBase .. tostring(destIndex) .. ":SHEET", sheet );
setDbProp(dbLocalBonusBase .. tostring(destIndex) .. ":DISABLED", disabled ); setDbProp(dbLocalBonusBase .. tostring(destIndex) .. ":DISABLED", disabled );
setDbProp(dbLocalBonusBase .. tostring(destIndex) .. ":DISABLED_TIME", timer);
destIndex= destIndex+1; destIndex= destIndex+1;
end end
if(mustShowBonus) then if(mustShowBonus) then
@ -708,12 +728,14 @@ function game:updatePlayerBonusMalus()
-- get -- get
local sheet= getDbProp(dbServerMalusBase .. tostring(i) .. ":SHEET" ); local sheet= getDbProp(dbServerMalusBase .. tostring(i) .. ":SHEET" );
local disabled= getDbProp(dbServerMalusBase .. tostring(i) .. ":DISABLED" ); local disabled= getDbProp(dbServerMalusBase .. tostring(i) .. ":DISABLED" );
local timer = getDbProp(dbServerMalusBase .. tostring(i) .. ":DISABLED_TIME" );
if(sheet~=0) then if(sheet~=0) then
mustShowMalus= true; mustShowMalus= true;
end end
-- copy -- copy
setDbProp(dbLocalMalusBase .. tostring(destIndex) .. ":SHEET", sheet ); setDbProp(dbLocalMalusBase .. tostring(destIndex) .. ":SHEET", sheet );
setDbProp(dbLocalMalusBase .. tostring(destIndex) .. ":DISABLED", disabled ); setDbProp(dbLocalMalusBase .. tostring(destIndex) .. ":DISABLED", disabled );
setDbProp(dbLocalMalusBase .. tostring(destIndex) .. ":DISABLED_TIME", timer);
destIndex= destIndex+1; destIndex= destIndex+1;
end end
if(mustShowMalus) then if(mustShowMalus) then
@ -958,3 +980,27 @@ function game:updateCrystallizedSpellTooltip(crystallizedSpell)
updateTooltipCoords() updateTooltipCoords()
return text return text
end end
------------------------------------------------------------------------------------------------------------
-- update craft window craftplan or item name and description
-- craftphan
-- uiCaller == ui:interface:phrase_faber_execution:header_opened
-- dbPath == UI:PHRASE:FABER:FABER_PLAN:SHEET
-- selected item
-- uiCaller == ui:interface:phrase_faber_execution:header_opened:item_result
-- dbPath == UI:PHRASE:FABER:RESULT_ITEM:SHEET
function game:updatePhraseFaberPreview(dbPath)
local ui= getUICaller();
local sheet = getSheetName(getDbProp(dbPath))
local name = ui:find("name")
if (name ~= nil) then
ui:find("name").hardtext = getSheetLocalizedName(sheet)
end
local desc = ui:find("desc")
if (desc ~= nil) then
ui:find("desc").hardtext = getSheetLocalizedDesc(sheet)
end
end

@ -231,6 +231,7 @@
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" /> <action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" /> <action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" />
<action handler="set" params="dblink=UI:SAVE:SHOW_3D_ITEM_PREVIEW|value=1" /> <action handler="set" params="dblink=UI:SAVE:SHOW_3D_ITEM_PREVIEW|value=1" />
<action handler="set" params="dblink=UI:SAVE:SHOW_ICON_BUFFS|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=1" /> <action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_STA|value=1" /> <action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_STA|value=1" />

@ -5,6 +5,36 @@ WebBrowser = {
apps = {} apps = {}
} }
function WebBrowser:addWindow(id, title, ui)
local found_app = nil
for k,app in pairs(self.apps) do
if app.id == id then
found_app = app
app.title = title
app.uiWindow = ui
app.winw = ui.w
app.winh = ui.h
end
end
if found_app == nil then
local app = {}
app.id = id
app.title = ""
app.url = ""
app.uiWindow = ui
app.winid = "ui:interface:" .. id
app.winw = ui.w
app.winh = ui.h
app.minimized = true
app.activeUrl = ""
app.closedw = 150
app.closedh = 0
table.insert(self.apps, app)
end
return ui
end
function WebBrowser:openWindow(id, url) function WebBrowser:openWindow(id, url)
-- default value if url is not set -- default value if url is not set
url = url or "http://app.ryzom.com/" url = url or "http://app.ryzom.com/"
@ -22,6 +52,8 @@ function WebBrowser:openWindow(id, url)
app.winid = "ui:interface:" .. id app.winid = "ui:interface:" .. id
app.winw = 780 app.winw = 780
app.winh = 500 app.winh = 500
app.closedw = 150
app.closedh = 0
app.minimized = true app.minimized = true
app.activeUrl = "" app.activeUrl = ""
@ -109,8 +141,8 @@ function WebBrowser:saveWindow(app)
app.winw = app.uiWindow.w app.winw = app.uiWindow.w
app.winh = app.uiWindow.h app.winh = app.uiWindow.h
-- minimize -- minimize
app.uiWindow.w = 150 app.uiWindow.w = app.closedw
app.uiWindow.h = 0 app.uiWindow.h = app.closedh
end end
function WebBrowser:restoreWindow(app) function WebBrowser:restoreWindow(app)
@ -121,6 +153,58 @@ function WebBrowser:restoreWindow(app)
end end
end end
------------------------------------------------------------------------------------------------------------
--
function WebBrowser:saveWindowPop(app)
if app == nil then
app = self:findAppFromUiCaller()
end
if app then
app.minimized = true
-- save size
app.winw = app.uiWindow.w
app.winh = app.uiWindow.h
app.pop_min_h = app.uiWindow.pop_min_h
app.pop_max_h = app.uiWindow.pop_max_h
app.pop_min_w = app.uiWindow.pop_min_w
-- minimize
app.uiWindow.w = app.closedw
app.uiWindow.h = app.closedh
app.uiWindow.pop_min_h = 32
app.uiWindow.pop_min_w = app.closedw
end
end
------------------------------------------------------------------------------------------------------------
--
function WebBrowser:restoreWindowPop(app)
if app == nil then
app = self:findAppFromUiCaller()
end
if app and app.minimized then
app.uiWindow.w = app.winw
app.uiWindow.h = app.winh
if app.pop_min_h ~= nil then
app.uiWindow.pop_min_h = app.pop_min_h
end
if app.pop_max_h ~= nil then
app.uiWindow.pop_max_h = app.pop_max_h
end
if app.pop_min_w ~= nil then
app.uiWindow.pop_min_w = app.pop_min_w
end
app.minimized = false
end
end
function WebBrowser:onClickRedo() function WebBrowser:onClickRedo()
-- caller is :header_opened:browse_redo -- caller is :header_opened:browse_redo
local uiWindow = getUICaller().parent.parent local uiWindow = getUICaller().parent.parent

@ -181,7 +181,9 @@
<view type="bitmap" id="win_BL" posref="BL BL" texture="Bulle_BL.tga" global_color="false"/> <view type="bitmap" id="win_BL" posref="BL BL" texture="Bulle_BL.tga" global_color="false"/>
<view type="bitmap" id="win_BR" posref="BR BR" texture="Bulle_BR.tga" global_color="false"/> <view type="bitmap" id="win_BR" posref="BR BR" texture="Bulle_BR.tga" global_color="false"/>
<view type="text" id="text" posref="TL TL" x="5" y="-5" hardtext="#hardtext" fontsize="12" justification="justified" color="0 0 0 255" global_color="false" multi_line="true" multi_line_space="0" line_maxw="160" multi_line_maxw_only="true" /> <view type="text" id="text" posref="TL TL" x="5" y="-5" hardtext="#hardtext"
fontsize="12" justification="justified" color="0 0 0 255" global_color="false"
multi_line="true" multi_line_space="0" line_maxw="160" multi_line_maxw_only="true" />
<! - Yoyo: Fake to have minimum bubble size - > <! - Yoyo: Fake to have minimum bubble size - >
<group id="min_w" posparent="text" posref="TL TL" x="0" y="0" w="48" h="14" /> <group id="min_w" posparent="text" posref="TL TL" x="0" y="0" w="48" h="14" />
@ -361,8 +363,7 @@
<action id="item_text_edition" name="uimItemTextEdit" handler="item_text_edition" params="ui:interface:edit_custom" /> <action id="item_text_edition" name="uimItemTextEdit" handler="item_text_edition" params="ui:interface:edit_custom" />
<action id="item_group" name="uimGroup" /> <action id="item_group" name="uimGroup" />
<!-- Will be activated and populated in code --> <!-- Will be activated and populated in code -->
<group type="menu" id="item_group_menu" extends="base_menu"> <group type="menu" id="item_group_menu" extends="base_menu"></group>
</group>
</group> </group>
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
@ -1491,8 +1492,8 @@
</template> </template>
<!-- html browsing context --> <!-- html browsing context -->
<template name="webig_html" keep="true" home="" browse_redo="" browse_undo="" browse_refresh=""> <template name="webig_html" id="html" keep="true" home="" browse_redo="" browse_undo="" browse_refresh="" bg_color="0 0 0 255">
<group id="html" type="webig_html" posref="TL TL" home="#home" title_prefix="" sizeref="wh" x="0" 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="255 255 255 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="12" 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="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="background_bitmap" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="#browse_refresh" browse_undo="#browse_undo" browse_redo="#browse_redo"> <group id="#id" type="webig_html" posref="TL TL" home="#home" title_prefix="" sizeref="wh" x="0" y="0" w="0" h="0" background_color="#bg_color" 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="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" 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="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="background_bitmap" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="#browse_refresh" browse_undo="#browse_undo" browse_redo="#browse_redo">
<group id="black" posref="BR BR" sizeref="hw" w="-10" h="-12" inherit_gc_alpha="true" /> <group id="black" posref="BR BR" sizeref="hw" w="-10" h="-12" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true " /> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true " />
<view id="background_bitmap" type="bitmap" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" /> <view id="background_bitmap" type="bitmap" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
@ -1500,10 +1501,17 @@
<ctrl id="scroll_bar" style="skin_scroll" /> <ctrl id="scroll_bar" style="skin_scroll" />
</group> </group>
</template> </template>
<!-- html browsing context no border -->
<template name="webig_html_noborder" id="html" keep="true" home="" browse_redo="" browse_undo="" browse_refresh="" bg_color="0 0 0 255" x="0" y="0" h="0" w="0">
<group id="#id" type="webig_html" posref="TL TL" home="#home" title_prefix="" sizeref="wh" x="#x" y="#y" w="#w" h="#h" background_color="#bg_color" 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="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" 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="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="background_bitmap" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="#browse_refresh" browse_undo="#browse_undo" browse_redo="#browse_redo">
<group id="black" posref="BR BR" sizeref="hw" w="-10" h="-12" inherit_gc_alpha="true" />
<group id="text_list" type="list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl id="scroll_bar" style="skin_scroll" />
</group>
</template>
<!-- html browser window --> <!-- html browser window -->
<template name="webig_browser" keep="true" home="" w="480" h="400" browse_redo="" browse_undo="" browse_refresh=""> <template name="webig_browser" keep="true" home="" w="480" h="400" pop_max_w="2000" pop_max_h="2000" pop_min_w="64" pop_min_h="32" browse_redo="" browse_undo="" browse_refresh="" resizer="true">
<group id="browser" type="container" w="#w" h="#h" x="0" y="0" pop_max_w="2000" pop_max_h="2000" pop_min_w="64" pop_min_h="32" header_color="UI:SAVE:WIN:COLORS:COM" posref="TL TL" title="" global_color="true" global_color_over="true" right_button="true" movable="true" lockable="true" active="true" openable="true" opened="true" resizer="true" on_active="lua" on_active_params="WebBrowser:onActive()"> <group id="browser" type="container" w="#w" h="#h" x="0" y="0" pop_max_w="#pop_max_w" pop_max_h="#pop_max_h" pop_min_w="#pop_min_w" pop_min_h="#pop_min_h" header_color="UI:SAVE:WIN:COLORS:COM" posref="TL TL" title="" global_color="true" global_color_over="true" right_button="true" movable="true" lockable="true" active="true" openable="true" opened="true" resizer="#resizer" on_active="lua" on_active_params="WebBrowser:onActive()">
<group id="header_closed" w="64" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:onClickHeaderClose()" /> <group id="header_closed" w="64" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:onClickHeaderClose()" />
<group id="header_opened" h="16" w="480" posref="TL TL" on_active="lua" on_active_params="WebBrowser:onClickHeaderOpen()"> <group id="header_opened" h="16" w="480" posref="TL TL" on_active="lua" on_active_params="WebBrowser:onClickHeaderOpen()">
<ctrl style="text_button_header" id="browse_redo" button_type="push_button" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="lua" params_l="WebBrowser:onClickRedo()" frozen="true" /> <ctrl style="text_button_header" id="browse_redo" button_type="push_button" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="lua" params_l="WebBrowser:onClickRedo()" frozen="true" />

Loading…
Cancel
Save