Problem with System.IdleTime
#1
Hi,

I have a problem with System.IdleTime... It return nothing when I try to define it like that :

Code:
<visible>[System.IdleTime($INFO[Skin.String(timelimit)]) + Skin.HasSetting(furniture.overlayinfo)]</visible>

with this skin settings :

Code:
<control type="button" id="9020">
                        <width>100%</width>
                        <label>- Time Limit</label>
                        <label2>$INFO[Skin.String(timelimit)] seconds</label2>
                        <onclick>Skin.SetNumeric(timelimit)</onclick>
                        <include>Defs_OptionButton</include>
                        <visible>ControlGroup(8000).HasFocus(8097)</visible>
                        <visible>Skin.HasSetting(furniture.overlayinfo)</visible>
                    </control>

Label2 is correctly displayed.


I have tried this too :

Code:
<visible>[System.IdleTime($VAR[Label_SkinSetting_TimeLimit]) + Skin.HasSetting(furniture.overlayinfo)]</visible>

Code:
<control type="button" id="9020">
                        <width>100%</width>
                        <label>- Time Limit</label>
                        <label2>$VAR[Label_SkinSetting_TimeLimit] seconds</label2>
                        <onclick>Skin.SetNumeric(timelimit)</onclick>
                        <include>Defs_OptionButton</include>
                        <visible>ControlGroup(8000).HasFocus(8097)</visible>
                        <visible>Skin.HasSetting(furniture.overlayinfo)</visible>
                    </control>

Code:
<variable name="Label_SkinSetting_TimeLimit">
        <value condition="IsEmpty(Skin.String(timelimit))">5</value>
        <value>$INFO[Skin.String(timelimit)]</value>
    </variable>

Nothing is working.
 Estuary MOD V2 
Reply
#2
System.IdleTime will not take a string, only a set integer.
You have to use multiple includes:

PHP Code:
<include condition="stringcompare(skin.string(timelimit),1)">TimeLimit1</include>
<include 
condition="stringcompare(skin.string(timelimit),2)">TimeLimit2</include> 
PHP Code:
<include name="TimeLimit1"><visible>System.IdleTime(1)</visible></include>
<include 
name="TimeLimit2"><visible>System.IdleTime(2)</visible></include> 
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
Ok thanks. So, if I understand, it's not possible to leave the choice of time limit for the user with SetNumeric.
 Estuary MOD V2 
Reply
#4
(2016-02-06, 16:03)Guilouz Wrote: Ok thanks. So, if I understand, it's not possible to leave the choice of time limit for the user with SetNumeric.
Sadly, nope. I too would like that being possible.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with System.IdleTime0