Space Engineers

Space Engineers

Database interfaz
cab331  [developer] 10 Nov, 2015 @ 8:42am
Interfaz Example
//INTERFAZ program

interfaz itf= new interfaz();
bool fristLook=true;//Load your interfaces the frist time that Program Run



void Main()
{
if(fristLook)
{
itf.addMenu("Main Menu","Select: ");
itf.addOptionIn(0,"Go to other look",1);

itf.addMenu("Other look","Select: ");
itf.addOptionIn(1,"Go to back",0);
_<IMyTextPanel>("MyAlert").AddImageToSelection("Danger");
_<IMyTextPanel>("MyAlert").AddImageToSelection("Arrow");
fristLook=false;
}
mostrar(itf.ifcs[itf.GetIfact()].mostrar(),"MyDisplay1");//Show the actual Menu
List<int> moves=itf.run(teclado("keyup","keydown","keycheck","keyback")) ;//KeyBoard is On
//if key = 1 => up, 2=> down, 3 =>check, 4 =>back && cursorPosition => option && actual menu
if(moves[0]==3&&moves[1]==1&&moves[2]==0)
{
_<IMyTextPanel>("MyAlert").ShowTextureOnScreen();
}
if(moves[0]==3&&moves[1]==1&&moves[2]==1)
{
mostrar("hola","MyAlert");
}
cambiarAccionObjeto("time2","Start");


}
< >
Showing 1-1 of 1 comments
cab331  [developer] 10 Nov, 2015 @ 10:28am 
< >
Showing 1-1 of 1 comments
Per page: 1530 50