.
This commit is contained in:
parent
bd8e3e0cca
commit
8ace0508ad
1 changed files with 19 additions and 214 deletions
233
ftpd-pack.xml
233
ftpd-pack.xml
|
@ -2035,154 +2035,6 @@ end</script>
|
||||||
</regexCodePropertyList>
|
</regexCodePropertyList>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd-daracan-lampa</name>
|
|
||||||
<script></script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList />
|
|
||||||
<regexCodePropertyList />
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd_daracan_lampa_timery_start</name>
|
|
||||||
<script>enableTimer("ftpd_daracan_lamp_info_timer")
|
|
||||||
lampa_zapalona_key = true
|
|
||||||
enableTrigger("ftpd_daracan_lampa_timery_dopelnienie")
|
|
||||||
selectCurrentLine()
|
|
||||||
fg("orange")
|
|
||||||
info_lamp_value = 300
|
|
||||||
resetFormat()</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^[ >]*Zapalasz(|[a-z ]+) lampe</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd_daracan_lampa_timery_off</name>
|
|
||||||
<script>if lampa_zapalona_key == true then
|
|
||||||
disableTimer("ftpd_daracan_lamp_info_timer")
|
|
||||||
lampa_zapalona_key = false
|
|
||||||
disableTrigger("ftpd_daracan_lampa_timery_dopelnienie")
|
|
||||||
end
|
|
||||||
selectCurrentLine()
|
|
||||||
fg("orange")
|
|
||||||
resetFormat()
|
|
||||||
scripts.ui:info_lamp_update("")</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^Gasisz(|[a-z ]+) lampe</string>
|
|
||||||
<string>nie jest zapalona\.$</string>
|
|
||||||
<string>[ >]*Probujesz zapalic [a-z ]+ jest wyczerpana\.$</string>
|
|
||||||
<string>(?<!fajka) wypala sie i gasnie.$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd_daracan_lampa_timery_dopelnienie</name>
|
|
||||||
<script>selectCurrentLine()
|
|
||||||
fg("yellow")
|
|
||||||
resetFormat()
|
|
||||||
info_lamp_value = 300</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^[ >]*Dopelniasz(|[a-z ]+) butelki oleju</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd_daracan_pusta_butelka</name>
|
|
||||||
<script>selectCurrentLine()
|
|
||||||
fg("yellow")
|
|
||||||
resetFormat()
|
|
||||||
scripts.utils.bind_functional("odloz olej; wez olej ze swojego plecaka; napelnij lampe olejem", false)</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>oprozniajac zupelnie(|[a-z ]+) butelke oleju\.$</string>
|
|
||||||
<string>utelka oleju jest pusta\.$</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
|
|
||||||
<name>ftpd_daracan_brak_butelki</name>
|
|
||||||
<script>selectCurrentLine()
|
|
||||||
fg("yellow")
|
|
||||||
resetFormat()
|
|
||||||
cecho("<green> >> Wyciagnij butelke z plecaka!")
|
|
||||||
scripts.utils.bind_functional("odloz olej; wez olej ze swojego plecaka; napelnij lampe olejem", false)</script>
|
|
||||||
<triggerType>0</triggerType>
|
|
||||||
<conditonLineDelta>0</conditonLineDelta>
|
|
||||||
<mStayOpen>0</mStayOpen>
|
|
||||||
<mCommand></mCommand>
|
|
||||||
<packageName></packageName>
|
|
||||||
<mFgColor>#ff0000</mFgColor>
|
|
||||||
<mBgColor>#ffff00</mBgColor>
|
|
||||||
<mSoundFile></mSoundFile>
|
|
||||||
<colorTriggerFgColor>#000000</colorTriggerFgColor>
|
|
||||||
<colorTriggerBgColor>#000000</colorTriggerBgColor>
|
|
||||||
<regexCodeList>
|
|
||||||
<string>^Czym chcesz napelnic(|[a-z ]+) lampe</string>
|
|
||||||
</regexCodeList>
|
|
||||||
<regexCodePropertyList>
|
|
||||||
<integer>1</integer>
|
|
||||||
</regexCodePropertyList>
|
|
||||||
</Trigger>
|
|
||||||
</TriggerGroup>
|
|
||||||
</TriggerGroup>
|
</TriggerGroup>
|
||||||
</TriggerPackage>
|
</TriggerPackage>
|
||||||
<TimerPackage>
|
<TimerPackage>
|
||||||
|
@ -2208,35 +2060,6 @@ end </script>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<time>00:00:01.000</time>
|
<time>00:00:01.000</time>
|
||||||
</Timer>
|
</Timer>
|
||||||
<Timer isActive="no" isFolder="no" isTempTimer="no" isOffsetTimer="no">
|
|
||||||
<name>ftpd_daracan_lamp_info_timer</name>
|
|
||||||
<script>info_lamp_value = info_lamp_value - 1
|
|
||||||
|
|
||||||
scripts.ui.footer_info_lamp:echo("<font color='"..scripts.ui["footer_info_normal"].."'>Lampa:</font> <font color='"..scripts.ui["footer_info_green"].."'>" .. SecondsToClock(info_lamp_value) .. "</font>")
|
|
||||||
|
|
||||||
if info_lamp_value == 120 then
|
|
||||||
cecho("\n<green> >>> Lamp: 2 min.\n\n")
|
|
||||||
elseif info_lamp_value == 60 then
|
|
||||||
cecho("\n<yellow> >>> Lamp: 1 min.\n\n")
|
|
||||||
elseif info_lamp_value == 30 then
|
|
||||||
cecho("\n<red> >>> Lamp: 30 secs!")
|
|
||||||
scripts.utils.bind_functional("napelnij lampe olejem", false)
|
|
||||||
elseif info_lamp_value == 10 then
|
|
||||||
cecho("\n<red> >>> LAMP: 10 SECS!")
|
|
||||||
raiseEvent("playBeep")
|
|
||||||
scripts.utils.bind_functional("napelnij lampe olejem", false)
|
|
||||||
end
|
|
||||||
|
|
||||||
if info_lamp_value < 61 then
|
|
||||||
scripts.ui.footer_info_lamp:echo("<font color='"..scripts.ui["footer_info_normal"].."'>Lampa:</font> <font color='"..scripts.ui["footer_info_yellow"].."'>" .. SecondsToClock(info_lamp_value) .. "</font>")
|
|
||||||
end
|
|
||||||
if info_lamp_value < 31 then
|
|
||||||
scripts.ui.footer_info_lamp:echo("<font color='"..scripts.ui["footer_info_normal"].."'>Lampa:</font> <font color='"..scripts.ui["footer_info_red"].."'>" .. SecondsToClock(info_lamp_value) .. "</font>")
|
|
||||||
end</script>
|
|
||||||
<command></command>
|
|
||||||
<packageName></packageName>
|
|
||||||
<time>00:00:01.000</time>
|
|
||||||
</Timer>
|
|
||||||
</TimerGroup>
|
</TimerGroup>
|
||||||
</TimerPackage>
|
</TimerPackage>
|
||||||
<AliasPackage>
|
<AliasPackage>
|
||||||
|
@ -3031,10 +2854,10 @@ end</script>
|
||||||
<string>gmcp.gmcp_msgs</string>
|
<string>gmcp.gmcp_msgs</string>
|
||||||
</eventHandlerList>
|
</eventHandlerList>
|
||||||
</Script>
|
</Script>
|
||||||
<Script isActive="yes" isFolder="no">
|
<Script isActive="no" isFolder="no">
|
||||||
<name>ftpd_daracan_main_footer_updater</name>
|
<name>ftpd_main_footer_updater_mode3_daracan</name>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script>function scripts.ui:process_label_text(prefix, val, max, color)
|
<script>function scripts.ui:process_label_text_mode3(prefix, val, max, color)
|
||||||
if val == -1 then
|
if val == -1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -3090,7 +2913,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Man" then
|
elseif val == 1 and prefix == "Man" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki7
|
str = str.. ""..belki1.."" ..color2.."" ..belki7
|
||||||
elseif val == 0 and prefix == "Man" then
|
elseif val == 0 and prefix == "Man" then
|
||||||
-- str = str.. ""..color2.."" ..belki8
|
|
||||||
str = str.. ""..belki8
|
str = str.. ""..belki8
|
||||||
|
|
||||||
elseif val == 0 and prefix == "Zme" then
|
elseif val == 0 and prefix == "Zme" then
|
||||||
|
@ -3127,7 +2949,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Prz" then
|
elseif val == 1 and prefix == "Prz" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki5
|
str = str.. ""..belki1.."" ..color2.."" ..belki5
|
||||||
elseif val == 0 and prefix == "Prz" then
|
elseif val == 0 and prefix == "Prz" then
|
||||||
-- str = str.. "" ..color2.. ""..belki6
|
|
||||||
str = str.. "" ..belki6
|
str = str.. "" ..belki6
|
||||||
|
|
||||||
elseif val == 5 and prefix == "Pan" then
|
elseif val == 5 and prefix == "Pan" then
|
||||||
|
@ -3141,7 +2962,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Pan" then
|
elseif val == 1 and prefix == "Pan" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki4
|
str = str.. ""..belki1.."" ..color2.."" ..belki4
|
||||||
elseif val == 0 and prefix == "Pan" then
|
elseif val == 0 and prefix == "Pan" then
|
||||||
-- str = str.. ""..color2.."" ..belki5
|
|
||||||
str = str.. ""..belki5
|
str = str.. ""..belki5
|
||||||
|
|
||||||
elseif val == 6 and prefix == "Kac" then
|
elseif val == 6 and prefix == "Kac" then
|
||||||
|
@ -3157,7 +2977,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Kac" then
|
elseif val == 1 and prefix == "Kac" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki5
|
str = str.. ""..belki1.."" ..color2.."" ..belki5
|
||||||
elseif val == 0 and prefix == "Kac" then
|
elseif val == 0 and prefix == "Kac" then
|
||||||
-- str = str.. "" ..color2.."" ..belki6
|
|
||||||
str = str.. ""..belki6
|
str = str.. ""..belki6
|
||||||
|
|
||||||
elseif val == 3 and prefix == "For" then
|
elseif val == 3 and prefix == "For" then
|
||||||
|
@ -3167,7 +2986,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "For" then
|
elseif val == 1 and prefix == "For" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki2
|
str = str.. ""..belki1.."" ..color2.."" ..belki2
|
||||||
elseif val == 0 and prefix == "For" then
|
elseif val == 0 and prefix == "For" then
|
||||||
-- str = str.. "" ..color2.."" ..belki6
|
|
||||||
str = str.. "" ..belki3
|
str = str.. "" ..belki3
|
||||||
|
|
||||||
elseif val == 10 and prefix == "Upi" then
|
elseif val == 10 and prefix == "Upi" then
|
||||||
|
@ -3191,7 +3009,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Upi" then
|
elseif val == 1 and prefix == "Upi" then
|
||||||
str = str.. ""..belki1.."" ..color2.."" ..belki8
|
str = str.. ""..belki1.."" ..color2.."" ..belki8
|
||||||
elseif val == 0 and prefix == "Upi" then
|
elseif val == 0 and prefix == "Upi" then
|
||||||
-- str = str.. "" ..color2.."" ..belki9
|
|
||||||
str = str.. "" ..belki9
|
str = str.. "" ..belki9
|
||||||
|
|
||||||
elseif val == 3 and prefix == "Glo" then
|
elseif val == 3 and prefix == "Glo" then
|
||||||
|
@ -3201,7 +3018,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Glo" then
|
elseif val == 1 and prefix == "Glo" then
|
||||||
str = str.. ""..belki2.."" ..color2.."" ..belki2
|
str = str.. ""..belki2.."" ..color2.."" ..belki2
|
||||||
elseif val == 0 and prefix == "Glo" then
|
elseif val == 0 and prefix == "Glo" then
|
||||||
-- str = str.. ""..belki1.."" ..color2.."" ..belki3
|
|
||||||
str = str.. ""..belki4
|
str = str.. ""..belki4
|
||||||
|
|
||||||
elseif val == 3 and prefix == "Pra" then
|
elseif val == 3 and prefix == "Pra" then
|
||||||
|
@ -3211,7 +3027,6 @@ end</script>
|
||||||
elseif val == 1 and prefix == "Pra" then
|
elseif val == 1 and prefix == "Pra" then
|
||||||
str = str.. ""..belki2.."" ..color2.."" ..belki2
|
str = str.. ""..belki2.."" ..color2.."" ..belki2
|
||||||
elseif val == 0 and prefix == "Pra" then
|
elseif val == 0 and prefix == "Pra" then
|
||||||
-- str = str.. ""..belki1.."" ..color2.."" ..belki3
|
|
||||||
str = str.. ""..belki4
|
str = str.. ""..belki4
|
||||||
|
|
||||||
elseif val == 0 and prefix == "Pos" then
|
elseif val == 0 and prefix == "Pos" then
|
||||||
|
@ -3221,34 +3036,24 @@ end</script>
|
||||||
end</script>
|
end</script>
|
||||||
<eventHandlerList />
|
<eventHandlerList />
|
||||||
</Script>
|
</Script>
|
||||||
<Script isActive="yes" isFolder="no">
|
<Script isActive="no" isFolder="no">
|
||||||
<name>ftpd_daracan_lampa</name>
|
<name>ftpd_main_footer_updater_mode4_kazur</name>
|
||||||
<packageName></packageName>
|
<packageName></packageName>
|
||||||
<script>-------------------------------------------------
|
<script>function scripts.ui:process_label_text_mode4(prefix, val, max, color)
|
||||||
-- Put your Lua functions here. --
|
if val == -1 then
|
||||||
-- --
|
return
|
||||||
-- Note that you can also use external Scripts --
|
|
||||||
-------------------------------------------------
|
|
||||||
function SecondsToClock(seconds)
|
|
||||||
local seconds = tonumber(seconds)
|
|
||||||
|
|
||||||
if seconds <= 0 then
|
|
||||||
return "0"
|
|
||||||
else
|
|
||||||
hours = string.format("%02.f", math.floor(seconds/3600))
|
|
||||||
mins = string.format("%01.f", math.floor(seconds/60 - (hours*60)))
|
|
||||||
secs = string.format("%02.f", math.floor(seconds - hours*3600 - mins *60))
|
|
||||||
--newTime = hours..":"..mins..":"..secs
|
|
||||||
|
|
||||||
if seconds < 10 then
|
|
||||||
return seconds
|
|
||||||
elseif seconds <60 then
|
|
||||||
return secs
|
|
||||||
else
|
|
||||||
return mins..":"..secs
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
local str = [[<center><font color='#b3b3b3'>]] .. prefix .. [[ <font face="inversionz" size="5"><font color="]] .. color .. [[">]]
|
||||||
|
for tmpi = 1,val,1 do
|
||||||
|
str = str .. tmpi
|
||||||
|
end
|
||||||
|
str = str .. "</font>" .. [[<font color='#b3b3b3' background='#aaaaaa'>]]
|
||||||
|
val = val + 1
|
||||||
|
for tmpi = val,max,1 do
|
||||||
|
str = str ..tmpi
|
||||||
|
end
|
||||||
|
str = str .. "</font></font></center>"
|
||||||
|
return str
|
||||||
end
|
end
|
||||||
</script>
|
</script>
|
||||||
<eventHandlerList />
|
<eventHandlerList />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue