Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminal Numpad Help
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#5
RE: Terminal Numpad Help

Alright, the actual numpad shows up now, but how do I set the code for it? I presume it's the four digit number after sCode(?) but that's not it because it gives me the else function when I enter it.

void DoorNumPad_OnGui(const tString&in asEntityName, float afTimeStep)
        {
        StationGui_Numpad("Numpad Header", 4);
        
        StationGuiBG_Backdrop();
        StationGuiBG_Scanlines();
        
        tString sCode = StationGui_GetNumpadInput();
        
        if (sCode == "1111")
            {
                Button_SetLocked("panel_laboratory_11", true,true);
            
                Depth_Audio_Terminal_Confirm(ImGui_GetName());
            }
        else
            {
                Depth_Audio_Terminal_Negative(ImGui_GetName());
            }
        }
}

On a side note: there's a glitched sound surrounding the panel whenever you're not looking at it. Like it is continuously playing one of the sounds over and over again.

"What you think is irrelevant" - A character of our time

A Christmas Hunt
(This post was last modified: 07-21-2016, 10:47 PM by i3670.)
07-21-2016, 10:18 PM
Find


Messages In This Thread
Terminal Numpad Help - by i3670 - 07-21-2016, 09:22 PM
RE: Terminal Numpad Help - by Abion47 - 07-21-2016, 09:45 PM
RE: Terminal Numpad Help - by i3670 - 07-21-2016, 09:49 PM
RE: Terminal Numpad Help - by Abion47 - 07-21-2016, 10:00 PM
RE: Terminal Numpad Help - by i3670 - 07-21-2016, 10:18 PM
RE: Terminal Numpad Help - by Abion47 - 07-22-2016, 06:59 PM
RE: Terminal Numpad Help - by i3670 - 07-22-2016, 11:44 PM



Users browsing this thread: 2 Guest(s)