2009-06-13, 18:32
Hi,
I am trying to modify the PM3-HD skin files to integrate properly some touchscreen buttons.
I am faced to the problem that there is not a boolean conditions to know if "Touchscreen.Mode" is enabled or not. (at least, not listed here)
So I can not hide/unhide those specific buttons and the contents of the "pointer.xml" file (To avoid to see the VERY useless cursor when Touchscreen mode is selected)
As an example, I would like to create a radio button in "Appareances settings" :
But there is not any boolean test to use with the <onclick>
So my other button :
Is always on screen
Maybe there is a way to use the onclick function to change the value of a variable that I would be able to create but in the wiki it is written that :
"Specifies the action to perform when the button is pressed. Should be a built in function."
Plus I did not find any information about creating a variable for a user...
If it is possible to do without implementing a new boolean test, any help would be appreciated
Thank you
I am trying to modify the PM3-HD skin files to integrate properly some touchscreen buttons.
I am faced to the problem that there is not a boolean conditions to know if "Touchscreen.Mode" is enabled or not. (at least, not listed here)
So I can not hide/unhide those specific buttons and the contents of the "pointer.xml" file (To avoid to see the VERY useless cursor when Touchscreen mode is selected)
As an example, I would like to create a radio button in "Appareances settings" :
Code:
<control type="radiobutton">
<visible>ControlGroup(10019).HasFocus</visible>
<description>Radio button for enabling/disabling touchscreen</description>
<label>Touchscreen mode</label>
<include>ButtonCommonValues</include>
[b]<onclick>Touchscreen.Mode(1)</onclick>[/b]
</control>
But there is not any boolean test to use with the <onclick>
So my other button :
Code:
<control type="button">
<description>Back button</description>
<visible>!Touchscreen</visible>
<include>ButtonCommonValues</include>
<onclick>ActivateWindow(Settings)</onclick>
</control>
Maybe there is a way to use the onclick function to change the value of a variable that I would be able to create but in the wiki it is written that :
"Specifies the action to perform when the button is pressed. Should be a built in function."
Plus I did not find any information about creating a variable for a user...
If it is possible to do without implementing a new boolean test, any help would be appreciated
Thank you