aRKeycH
27.12.2002, 20:22
lo ehm jo Ich bin irgendwie blind ,Ich find den fehler nicht in meinem gui script,Ich weiss nur noch das die funktion onESC{set "cmd" "close"} nicht mehr funktioniert,nach dem Ich windowDef cool eingefügt habe.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Hauptfenster
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
windowDef Desktop
{
rect *0 ,0 ,640 ,480
backcolor *0, 0, 0, 0.5 *
nocursor 0
float Menugui "1"
onESC * // funktioniert nicht mehr
{
*set "cmd" "close";
}
///////////////////////////////////////////////
windowDef Option1 * *//hier irgewndwo sollte der fehler sein ,finde ihn aber nicht.
{
*visible 0
*noevents 1
*rect *200, 200, 200, 20
*text *"StartGame"
*font *"fonts/"
*textscale 0.2
*textalign 1
*forecolor 0.1, 0.8, 0.2, 1
*
*onMouseEnter
*{
* set "forecolor" "0.4, 0.3, 0.8, 1";
*}
*
*onMouseExit
*{
* set "forecolor" "0.1, 0.8, 0.2, 1";
*}
*
*onMouseAction
*{
* set "cmd" "startgame";
*}
}
*
/////////////////////////////////////////////////////////////////////////////
windowDef text1
{
*visible 0
*rect *60, 50, 200, 20
*text *"Main Menu"
*font *"fonts/"
*textscale 0.2
*textalign 1
*forecolor 0.2, 0.6, 0.7, 1
}
/////////////////////////////////////////////////////////////////////////////
/* windowDef test1
{
*visible 1
*rect *590, 440, 10, 10
*backcolor 0.7, 0, 0, 0.5
*bordercolor * 1, 0, 0, 1
*bordersize 0.3
*
*
*onMouseEnter
*{
* set "invertrect" "1";
* transition "test1::rect" "590 440 10 10" "590 440 400 400" "200";
*}
*
*onMouseExit
*{
* transition "test1::rect" "590 440 400 400" "590 440 10 10" "200";
*}
}*/
/////////////////////////////////////////////////////////////////////////////
windowDef Menu1
{
*//visible 1
*rect *40, 40, 10, 10
*backcolor 0.7, 0, 0, 0.5
*bordercolor * 1, 0, 0, 1
*bordersize 0.3
*onMouseEnter
*{
* transition "Menu1::rect" "40 40 10 10" "40 40 400 400" "200";
* set "text1::visible" "1";
* set "Option1::visible" "1";
*
*}
*
*onMouseExit
*{
* set "text1::visible" "0";
* set "cool::visible" "0";
* transition "Menu1::rect" "40 40 400 400" "40 40 10 10" "200";
*}
*
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Ende Hauptfenster
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Hauptfenster
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
windowDef Desktop
{
rect *0 ,0 ,640 ,480
backcolor *0, 0, 0, 0.5 *
nocursor 0
float Menugui "1"
onESC * // funktioniert nicht mehr
{
*set "cmd" "close";
}
///////////////////////////////////////////////
windowDef Option1 * *//hier irgewndwo sollte der fehler sein ,finde ihn aber nicht.
{
*visible 0
*noevents 1
*rect *200, 200, 200, 20
*text *"StartGame"
*font *"fonts/"
*textscale 0.2
*textalign 1
*forecolor 0.1, 0.8, 0.2, 1
*
*onMouseEnter
*{
* set "forecolor" "0.4, 0.3, 0.8, 1";
*}
*
*onMouseExit
*{
* set "forecolor" "0.1, 0.8, 0.2, 1";
*}
*
*onMouseAction
*{
* set "cmd" "startgame";
*}
}
*
/////////////////////////////////////////////////////////////////////////////
windowDef text1
{
*visible 0
*rect *60, 50, 200, 20
*text *"Main Menu"
*font *"fonts/"
*textscale 0.2
*textalign 1
*forecolor 0.2, 0.6, 0.7, 1
}
/////////////////////////////////////////////////////////////////////////////
/* windowDef test1
{
*visible 1
*rect *590, 440, 10, 10
*backcolor 0.7, 0, 0, 0.5
*bordercolor * 1, 0, 0, 1
*bordersize 0.3
*
*
*onMouseEnter
*{
* set "invertrect" "1";
* transition "test1::rect" "590 440 10 10" "590 440 400 400" "200";
*}
*
*onMouseExit
*{
* transition "test1::rect" "590 440 400 400" "590 440 10 10" "200";
*}
}*/
/////////////////////////////////////////////////////////////////////////////
windowDef Menu1
{
*//visible 1
*rect *40, 40, 10, 10
*backcolor 0.7, 0, 0, 0.5
*bordercolor * 1, 0, 0, 1
*bordersize 0.3
*onMouseEnter
*{
* transition "Menu1::rect" "40 40 10 10" "40 40 400 400" "200";
* set "text1::visible" "1";
* set "Option1::visible" "1";
*
*}
*
*onMouseExit
*{
* set "text1::visible" "0";
* set "cool::visible" "0";
* transition "Menu1::rect" "40 40 400 400" "40 40 10 10" "200";
*}
*
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Ende Hauptfenster
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}