Main > Software Forum
CP Sketcher-Version 2.1 coming soon... with a part editor.
Buddabing:
--- Quote from: tahnok100 on April 02, 2005, 11:02:31 pm ---All right, I understand. So what do you want my program to do? From what I have gathered, you want people to be able to layout there controls on my program. Then load them into your program, which will dynamically create an image with the correct controls, correct?
If so, it shouldn't be too hard. Though I can nearly guarantee you that I won't be able to export the files in the format that you want, I don't really have experience with such things. Please tell me what information must be given on the export, I will see what I can do.
--- End quote ---
Here's a sample control panel file with a trackball, a 4/8 way switchable joystick, and three buttons. It's a simple comma-delimited text file.
--- Code: ---; Panel 2: switchable 4/8 way joystick, three buttons, and a trackball.
;
startpanel,panel2,
controller,panel2.cfg,
;layout,panel2.lay,
template,template.png,
numplayers,1,
;layout,panel2.lof,
;template,template3.jpg,
;
; This joystick is 4-8 way switchable, so put in two 'control' entries,
; one for each control type.
;
control,joy8way,170,160,blackjoystick.png,dimblackjoystick.png,P1_JOYSTICK_UP,P1_JOYSTICK_DOWN,P1_JOYSTICK_LEFT,P1_JOYSTICK_RIGHT,
control,joy4way,170,160,blackjoystick.png,dimblackjoystick.png,P1_JOYSTICK_UP,P1_JOYSTICK_DOWN,P1_JOYSTICK_LEFT,P1_JOYSTICK_RIGHT,
control,p1button,330,180,blackbutton.png,dimblackbutton.png,KEYCODE_LCONTROL,
control,p1button,390,180,blackbutton.png,dimblackbutton.png,KEYCODE_LALT,
control,p1button,450,180,blackbutton.png,dimblackbutton.png,KEYCODE_SPACE,
control,trackball,580,140,whitetrackball.png,dimwhitetrackball.png,P1_TRACKBALL_X,P1_TRACKBALL_X_EXT,P1_TRACKBALL_Y,P1_TRACKBALL_Y_EXT,
;
; start and coin buttons
;
control,p1start,300,50,p1start.png,dimp1start.png,KEYCODE_1,
control,p2start,500,50,p2start.png,dimp2start.png,KEYCODE_2,
control,p1coin,400,50,greenbutton.png,dimgreenbutton.png,KEYCODE_5,
;
; labels
label,KEYCODE_LCONTROL,0.3560371,0.367688,0.1089783,4.052925E-02,-65536,-16711936,Times New Roman,18,2,
label,KEYCODE_LALT,0.4303406,0.2318942,0.1089783,4.052925E-02,16777215,16777215,Times New Roman,18,2,Bold,Italic,
label,KEYCODE_SPACE,0.5,0.367688,0.1213622,4.052925E-02,16777215,16777215,Times New Roman,14,2,Italic,
;
endpanel,panel2,
--- End code ---
You can eliminate the comments (lines starting with a semicolon) if you want.
I am willing to change the format of the panel file, but it's got to be human-readable text, so that it will be machine and OS-independent, and so that other programs and people can edit it.
If you can support labels, background images and associating keycodes to buttons, your application would be a virtually perfect design tool for CPMaker. Even without the labels and keycodes, it would still be useful and a big timesaver for anyone creating CPMaker panel files.
The only thing I've got to have is a readable output file.
quarterback:
--- Quote from: tahnok100 on April 02, 2005, 06:44:42 pm ---Here's a little utility I created to help with designing CPs. Right now it supports Happ and Ultimarc parts. All of them are scaled correctly.
--- End quote ---
That's freakin' awesome. I like it much better than the flash program.
Questions:
I don't understand all of the 'toggled' icons at the top of the screen. Specifically, the red diagonal arrow and the one to the right of that with the arrow that points up, down, right, or left. What do those do?
The option to toggle the underneath view versus the topside view is GREAT!
The only other thing that pops in my mind is that I'd like to be able to draw the edges/shape of my actual CP. Can it do that now? If so, I couldn't figure it out. If not, that'd be a great addition.
Thanks!
Tahnok:
Buddabing, I think I understand it. It
Buddabing:
--- Quote from: tahnok100 on April 03, 2005, 06:10:14 pm ---Buddabing, I think I understand it. It
--- End quote ---
MrSaLTy:
Quarterback.....
Looks like the red arrow when toggled on snaps placed objects to the grid. Haven't figured out the other yet. Prolly in the help but I was to lazy to read that yet. ;D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version