diff options
author | Ian C <ianc@noddybox.co.uk> | 2005-09-24 00:02:11 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2005-09-24 00:02:11 +0000 |
commit | 911416abf7340e7470f516a38c9089c362e0913f (patch) | |
tree | 58c5f44eccc9d7640576e30b73388789aea6aacd | |
parent | 263cefaad986b5fe61084b486422bc618b4d1aa2 (diff) |
Made backdrops half alpha on dialogs and alerts
-rw-r--r-- | simplegui.mod/simplegui.bmx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/simplegui.mod/simplegui.bmx b/simplegui.mod/simplegui.bmx index 2d3a570..2b348a0 100644 --- a/simplegui.mod/simplegui.bmx +++ b/simplegui.mod/simplegui.bmx @@ -783,7 +783,9 @@ Function GUINotify(s:String, i:TImage=Null) While click<>button Cls + SetAlpha(0.5) DrawImage(back,0,0) + SetAlpha(1) TWidget.Draw3DBox(x,y,w,h,False,2) gui.EventLoop() click=gui.Clicked() @@ -831,7 +833,9 @@ Function GUIYesNo:Int(s:String, i:TImage=Null) While click=Null Cls + SetAlpha(0.5) DrawImage(back,0,0) + SetAlpha(1) TWidget.Draw3DBox(x,y,w,h,False,2) gui.EventLoop() click=gui.Clicked() @@ -882,7 +886,9 @@ Function GUIMenu(title:String, options:String[], x:Int, y:Int, i:TImage=Null) While click=Null And KeyHit(KEY_MOUSERIGHT)=0 Cls + SetAlpha(0.5) DrawImage(back,0,0) + SetAlpha(1) TWidget.Draw3DBox(x,y,w,h,False,2) gui.EventLoop() click=gui.Clicked() @@ -921,7 +927,9 @@ Function GUIDialog(gui:TGUIHandler, ok:TWidget, cancel:TWidget, i:TImage=Null) While done=False Cls + SetAlpha(0.5) DrawImage(back,0,0) + SetAlpha(1) gui.EventLoop() click=gui.Clicked() |