Skip to content

Commit 7d2c68f

Browse files
author
MaximDude
committed
Added app icon
Added footer logo in output window Changes to "About" text
1 parent 5bd1ae8 commit 7d2c68f

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

assets/logo-image.png

10.4 KB
Loading

cccp-bender-main.bmx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Import BRL.PNGLoader
1515

1616
'Version
1717
Global appVersion:String = "0.1"
18+
Global appVersionDate:String = "17 Aug 2019"
1819

1920
'Output Window Title
2021
AppTitle = "CCCP Bender v"+appVersion+" - Output"
@@ -40,6 +41,7 @@ Type TAppOutput
4041
Const UPPER_BONE:Int = 0
4142
Const LOWER_BONE:Int = 1
4243
'Graphic Assets
44+
Global logoImage:TImage = LoadImage("assets/logo-image.png",MASKEDIMAGE)
4345
Global sourceImage:TImage
4446
Global boneImage:TImage[BONES]
4547
'Output Settings
@@ -85,7 +87,7 @@ Type TAppOutput
8587
'Window background color
8688
SetClsColor(BACKGROUND_RED,BACKGROUND_GREEN,BACKGROUND_BLUE)
8789
SetMaskColor(255,0,255)
88-
'DrawImage(sourceImage,0,0)
90+
DrawImage(logoImage,0,480-ImageHeight(logoImage))
8991
DrawImageRect(sourceImage,0,0,ImageWidth(sourceImage)*ZOOM,ImageHeight(sourceImage)*ZOOM)
9092
FCreateLimbTiles()
9193
FLimbBend()
@@ -169,9 +171,10 @@ Type TAppOutput
169171
redoBoneImage = False
170172
EndIf
171173
FLimbBend()
172-
'Footer text
174+
'Footer image and text
175+
DrawImage(logoImage,0,480-ImageHeight(logoImage))
173176
SetColor(255,230,80)
174-
DrawText("TBA",0,480-15)
177+
DrawText("TBA",ImageWidth(logoImage)+7,480-18)
175178
'Draw the joint markers
176179
Local i:Int
177180
For i = 0 To BONES-1
@@ -240,6 +243,9 @@ Type TAppGUI
240243
Global editHelpPanel:TGadget
241244
Global editHelpTextbox:TGadget
242245

246+
Global aboutTextboxContent:String[8]
247+
Global helpTextboxContent:String[]
248+
243249
'Create Main App Window
244250
Function FAppMain()
245251
mainWindow = CreateWindow("CCCP Bender v"+appVersion,DesktopWidth()/2-150,DesktopHeight()/2-180,300,340,Null,WINDOW_TITLEBAR|WINDOW_CLIENTCOORDS)
@@ -248,8 +254,17 @@ Type TAppGUI
248254
mainQuitButton = CreateButton("Quit",GadgetWidth(mainWindowButtonPanel)/2-69,40,130,30,mainWindowButtonPanel,BUTTON_PUSH)
249255
mainAboutPanel = CreatePanel(GadgetWidth(mainWindow)/2-140,GadgetHeight(mainWindowButtonPanel)+15,280,200,mainWindow,PANEL_GROUP," About : ")
250256
mainAboutTextbox = CreateTextArea(7,3,GadgetWidth(mainAboutPanel)-21,GadgetHeight(mainAboutPanel)-30,mainAboutPanel,TEXTAREA_WORDWRAP|TEXTAREA_READONLY)
251-
SetGadgetText(mainAboutTextbox,"Welcome to the CCCP Bender utility!~n~nIt's purpose is to make the life of modders easier by automagically generating bent limb frames.~n~nThe CC Bender was originally created by Arne Jansson (AndroidArts), the man behind all the Cortex Command artwork.~nThe CCCommunityProject Bender, however, is a brand new tool that allows more control and convenience For the modder (hopefully).~n~nThis tool utilizes Arne's original limb bend code, but also allows loading and saving sprites, along with other settings.~n~nCreated by MaximDude using BlitzMax MaxIDE 1.52~nCCCP Bender version 0.1 - 17 Aug 2019")
252257
mainWindowFooterLabel = CreateLabel("CCCP Bender v"+appVersion+" by MaximDude",10,GadgetHeight(mainWindow)-20,GadgetWidth(mainWindow),15,mainWindow,LABEL_LEFT)
258+
'About textbox Content
259+
aboutTextboxContent[0] = "Welcome to the CCCP Bender utility!~n~n"
260+
aboutTextboxContent[1] = "It's purpose is to make the life of modders easier by automagically generating bent limb frames.~n~n"
261+
aboutTextboxContent[2] = "The CC Bender was originally created by Arne Jansson (AndroidArts), the man behind all the Cortex Command artwork.~n"
262+
aboutTextboxContent[3] = "The CCCommunityProject Bender, however, is a brand new tool that allows more control and convenience for the modder (hopefully).~n~n"
263+
aboutTextboxContent[4] = "Arne's original bend code was used as base for this utility, and has been modified and improved to enable the new features.~n~n"
264+
aboutTextboxContent[5] = "Created by MaximDude using BlitzMax MaxIDE 1.52~n"
265+
aboutTextboxContent[6] = "Bender logo image by Arne Jansson - Edited by MaximDude"
266+
aboutTextboxContent[7] = "CCCP Bender version "+appVersion+" - "+appVersionDate
267+
SetGadgetText(mainAboutTextbox,aboutTextboxContent[0]+aboutTextboxContent[1]+aboutTextboxContent[2]+aboutTextboxContent[3]+aboutTextboxContent[4]+aboutTextboxContent[5]+aboutTextboxContent[6]+aboutTextboxContent[7])
253268
EndFunction
254269

255270
'Create Editor Window

cccp-bender-main.ico

32.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)