#comments-start
Copyright 2011-2012 Jeroen De Meerleer
This file is part of Go Cops! 2: The Reanimation.
Go Cops! 2: The Reanimation is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Go Cops! 2: The Reanimation is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Go Cops! 2: The Reanimation. If not, see <http://www.gnu.org/licenses/>.
#comments-end
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\icons\icon.ico
#AutoIt3Wrapper_Outfile=..\..\..\bin\gocops1104_86.exe
#AutoIt3Wrapper_Outfile_x64=..\..\..\bin\gocops1104_64.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_Res_Fileversion=1.1.0.4
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;add constants;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <StaticConstants.au3>
#include <EditConstants.au3>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;add other scripts;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include "new.au3"
#include "save.au3"
#include "savegame.au3"
#include "inbox.au3"
#include "game.au3"
#include "manager.au3"
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;main window;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
; create window
guicreate("Go Cops! 2: The Reanimation", 400, 500)
; create title-labels
$gocops = guictrlcreatelabel("Go Cops! 2", 25, 150, 350, 75)
$rean = guictrlcreatelabel("The reanimation", 25, 215, 150, 25)
; set font of title labels
guictrlsetfont($gocops, 48, 1200)
guictrlsetfont($rean, 12, 200)
; create version-information
$ver = guictrlcreatelabel("Version 1.1 (build " & $build & ")", 1, 487)
; create credit
$created = guictrlcreatelabel("Created by Jeroen De Meerleer", 252, 487)
; create buttons
$new = guictrlcreatebutton("New game", 50, 350, 100, 50)
$save = guictrlcreatebutton("Open saved game", 250, 350, 100, 50)
$manager = guictrlcreatebutton("Open manager", 150, 350, 100, 50)
; view window
guisetstate()
while 1
; get pressed button
$msg = guigetmsg()
select
; window is closed
case $msg = $GUI_EVENT_CLOSE
; ask to close
$close = msgbox(4, "Really quit?", "Are you sure you want to close Go Cops!?")
; if pressed yes then close Go Cops!
if $close = 6 then Exit
; New game button is pressed
case $msg = $new
; start new game
new()
; Open saved game button is pressed
case $msg = $save
; open window for selection of new game
save()
; Open manager button is pressed
case $msg = $manager
; open manager
manager()
EndSelect
wend