Slight adjustments to options screen (fixed invalid style pgBorder, moved exit buttons to corners now that there's a Cancel, added floating tooltips). Looking good, though, Dan! (y)

This was SVN commit r3356.
This commit is contained in:
Acumen 2006-01-12 15:17:35 +00:00
parent 19ad5a21e8
commit 740d4ab616
2 changed files with 66 additions and 48 deletions

View File

@ -26,21 +26,6 @@
// b] Variables a step up in the hierarchy are not recognised (eg system.sound.mastergain).
]]></action>
<!--
==========================================
- MAIN MENU - STATIC TOOLTIP WINDOW
==========================================
-->
<object name="pgToolTip"
style="fancyTextHeadWhite"
type="text"
hidden="true"
sprite="bkTranslucent"
size="69% 6.3802% 97.0703125% 28.125%"
>tooltipText
</object>
<!--
==========================================
- MAIN MENU - PROFILE MANAGER
@ -1210,7 +1195,7 @@ A large landmass with rivers, forests and coastal fishing grounds.
-->
<object name="pgOptionsAudioMusicGainTitle"
style="wheatBorder"
style="wheatTextLabelBlack"
type="text"
size="50%-200 30% 50%+20 35%"
text_align="center"
@ -1290,7 +1275,7 @@ A large landmass with rivers, forests and coastal fishing grounds.
-->
<object name="pgOptionsAudioSoundGainTitle"
style="wheatBorder"
style="wheatTextLabelBlack"
type="text"
size="50%-200 40% 50%+20 45%"
text_align="center"
@ -1365,7 +1350,7 @@ A large landmass with rivers, forests and coastal fishing grounds.
-->
<object name="pgOptionsAudioAmbientGainTitle"
style="wheatBorder"
style="wheatTextLabelBlack"
type="text"
size="50%-200 50% 50%+20 55%"
text_align="center"
@ -1440,7 +1425,7 @@ A large landmass with rivers, forests and coastal fishing grounds.
-->
<object name="pgOptionsAudioVoiceGainTitle"
style="wheatBorder"
style="wheatTextLabelBlack"
type="text"
size="50%-200 60% 50%+20 65%"
text_align="center"
@ -1524,7 +1509,7 @@ A large landmass with rivers, forests and coastal fishing grounds.
<object name="pgOptionsVideoResolutionTitle"
style="wheatBorder"
style="wheatTextLabelBlack"
type="text"
size="50%-200 30% 50%+20 35%"
text_align="center"
@ -1606,6 +1591,28 @@ A large landmass with rivers, forests and coastal fishing grounds.
openOptionsTab ("pgOptionsGame");
]]></action>
</object>
<!--
===============================================
- OPTIONS SCREEN - OK BUTTON
===============================================
-->
<object name="pgOptionsOKButton"
style="wheatButton"
type="button"
size="10% 92% 40% 100%"
tooltip="Save all changes and close the Options Screen."
tooltip_style="pgFloatingToolTip"
>OK
<action on="Press"><![CDATA[
// Save changes.
// TODO:
console.write ("Volume: " + g_ConfigDB.system["sound.mastergain"] + ".")
// Close options screen.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
<!--
===============================================
@ -1616,33 +1623,17 @@ A large landmass with rivers, forests and coastal fishing grounds.
<object name="pgOptionsCancelButton"
style="wheatButton"
type="button"
size="1% 92% 30% 100%"
size="60% 92% 90% 100%"
tooltip="Close Options Screen, abandoning all changes."
tooltip_style="pgFloatingToolTip"
>Cancel
<action on="Press"><![CDATA[
// Close Options Screen, abandoning all changes.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
<!--
===============================================
- OPTIONS SCREEN - ACCEPT BUTTON
===============================================
-->
<object name="pgOptionsAcceptButton"
style="wheatButton"
type="button"
size="40% 92% 60% 100%"
>Accept
<action on="Press"><![CDATA[
// Save changes.
// TODO:
console.write ("Volume: " + g_ConfigDB.system["sound.mastergain"] + ".")
// Close options screen.
closeMainMenuSubWindow ("pgOptions");
]]></action>
</object>
</object>
</object>
<!--
===============================================
@ -1691,6 +1682,22 @@ A large landmass with rivers, forests and coastal fishing grounds.
console.write ("Note to self: Ask Gee to create list function to clear (empty) a list.");
]]></action>
</object>
<!--
==========================================
- MAIN MENU - STATIC TOOLTIP WINDOW
(Put down the bottom so it stays on top.)
==========================================
-->
<object name="pgToolTip"
style="fancyTextHeadWhite"
type="text"
hidden="true"
sprite="bkTranslucent"
size="69% 6.3802% 97.0703125% 28.125%"
>tooltipText
</object>
</object>
</objects>

View File

@ -261,8 +261,14 @@ NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET
delay="0"
hide_object="true"
/>
<tooltip name="snToolTip"
<tooltip name="pgSessionSetupToolTip"
use_object="pgSessionSetupToolTip"
delay="0"
hide_object="true"
/>
<tooltip name="pgFloatingToolTip"
anchor="top"
buffer_zone="4"
delay="500"
@ -273,10 +279,15 @@ NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET
textcolor="0 0 0"
/>
<tooltip name="pgSessionSetupToolTip"
use_object="pgSessionSetupToolTip"
delay="0"
hide_object="true"
<tooltip name="snToolTip"
anchor="top"
buffer_zone="4"
delay="500"
font="tahoma12"
maxwidth="300"
offset="16 32"
sprite="bkWhiteBorderBlack"
textcolor="0 0 0"
/>