summaryrefslogtreecommitdiff
path: root/ondemand/init_code.lua
blob: 83366f195564b88cf247b90cbb93cbc5b54053d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
S.ori = POS(24,5,3)
S.ewd = POS(209,17,-190)
S.infoc = POS(49,13,-115)
S.infoo = POS(33,7,6)
S.infoe = POS(197,19,-185)
S.avail = true
F.call = function(msg)
if not S.avail then
return
end
S.avail = false
interrupt_pos(S.ori,msg)
interrupt_pos(S.ewd,msg)
F.send_info("Trein in transit nouw! Pleise be patient nouw!")
end

F.send_info = function(msg)
interrupt_pos(S.infoc,msg)
interrupt_pos(S.infoo,msg)
interrupt_pos(S.infoe,msg)
end
F.send_station = function(name)
F.send_info("Trein is at "..name..". Pleise enter your destination!")
end
s="hl opt">*image = nullptr); //! Set element properties from a StyleSpec virtual void setFromStyle(const StyleSpec& style) override; virtual void setScaleImage(bool scaleImage=true) override; //! Do not drop returned handle static GUIButtonImage *addButton(gui::IGUIEnvironment *environment, const core::rect<s32> &rectangle, ISimpleTextureSource *tsrc, IGUIElement *parent, s32 id, const wchar_t *text, const wchar_t *tooltiptext = L""); private: video::ITexture *m_foreground_image = nullptr; gui::IGUIImage *m_image; };