//Slider for Options Screens s_OMSlider { GUI_CREATE { int i int nHelpId int nSelected int nMin = 0 int nMax = 100 object oPlus = s_Text oPlus.nFontID = IDS_F_CAMPAIGN oPlus.szText = "+" oPlus.cTextColor = cWhite oPlus.nJustify = 1 initialize(oPlus) object oMinus = s_Text oMinus.nFontID = IDS_F_CAMPAIGN oMinus.szText = "-" oMinus.cTextColor = cWhite oMinus.nJustify = 1 initialize(oMinus) object oPane = s_Pane oPane.szBitmap = szPATH_GRAPHICS "OM_SliderBack.tga" oPane.nFrames = 1 oPane.nCurrFrame = 0 oPane.nMode = 1 oPane.fVolatile = 0 oPane.fRegion = 0 object oSlider = s_slider oSlider.itemWidth = 145 oSlider.itemheight = 8 oSlider.is_vertical = false } GUI_INIT { oPlus.location = location.x + 158,location.y - 3,nZ_TEXT oMinus.location = location.x - 14,location.y - 3,nZ_TEXT oPane.location = location.x,location.y,nZ_PANE oPane.nHelpID = nHelpID initialize(oPane) oSlider.slider_min_val = nMin oSlider.slider_max_val = nMax oSlider.nSelected = nSelected oSlider.location = location.x + 3,location.y,nZ_SLIDER initialize(oSlider) } GUI_MAILBOX { if sender == oSlider { nSelected = oSlider.nSelected mail(nSelected) } } }