Hey, I'm new to doom 3, so could I get some help with a gui problem I've been having?

Basically, I'm trying to make a menu where one out of the four buttons opens a door. The coding necessary to do this eludes me. Here is an exact copy of the GUI:

windowDef Desktop
{
rect 0,0,640,480
windowDef background
{
rect -2,0,643,482
visible 1
background "blueground1"
matcolor 1,1,1,1
noevents 1
}
windowDef op1
{
rect 36,156,252,120
visible 1
background "button1"
matcolor 1,1,1,1

onMouseEnter {
set "op1::matcolor" "0.5 0.5 0.5 1";
localSound "guisounds_click3";
}

onMouseExit {
set "op1::matcolor" "1 1 1 1";
localSound "guisounds_click3";
}

onAction {
}

}
windowDef op2
{
rect 336,156,252,120
visible 1
background "button1"
matcolor 1,1,1,1

onMouseEnter {
set "op2::matcolor" "0.5 0.5 0.5 1";
localSound "guisounds_click3";
}

onMouseExit {
set "op2::matcolor" "1 1 1 1";
localSound "guisounds_click3";
}

onAction {
set "op2::matcolor" "0.5 1 1 1";
localSound "guisounds_admin_error";
set "click::noevents" "0" ;
}

}
windowDef op3
{
rect 36,300,252,132
visible 1
background "button1"
matcolor 1,1,1,1

onMouseEnter {
set "op3::matcolor" "0.5 0.5 0.5 1";
localSound "guisounds_click3";
}

onMouseExit {
set "op3::matcolor" "1 1 1 1";
localSound "guisounds_click3";
}

onAction {
}

}
windowDef op4
{
rect 336,300,252,132
visible 1
background "button1"
matcolor 1,1,1,1

onMouseEnter {
set "op4::matcolor" "0.5 0.5 0.5 1";
localSound "guisounds_click3";
}

onMouseExit {
set "op4::matcolor" "1 1 1 1";
localSound "guisounds_click3";
}

onAction {
}

}
windowDef title1
{
rect -137,21,882,116
visible 1
background "button1"
matcolor 1,1,1,1
noevents 1
}
windowDef questiontext1
{
rect 5,25,581,66
visible 1
forecolor 1,1,1,1
text "dummytext"
textscale 0.5
font "fonts/english"
}
windowDef answertext1_1
{
rect 43,156,239,110
visible 1
forecolor 1,1,1,1
text "dummytext"
textscale 0.40000001
font "fonts/english"
noevents 1
}
windowDef answertext2_1
{
rect 340,158,248,110
visible 1
forecolor 1,1,1,1
text "dummytext"
textscale 0.40000001
font "fonts/english"
noevents 1

onAction {
set "cmd" "activate ; play guisounds_click" ;
set "answertext2_1::noevents" "0" ;
}

}
windowDef answertext3_1
{
rect 43,306,243,119
visible 1
forecolor 1,1,1,1
text "dummytext"
textscale 0.40000001
font "fonts/english"
noevents 1
}
windowDef answertext4_1
{
rect 341,302,247,132
visible 1
forecolor 1,1,1,1
text "dummytext"
textscale 0.40000001
font "fonts/english"
noevents 1
}
}

If there's anyone out there who can help me with this, please do so!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now