Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New menu system
12-09-2005, 02:29 PM,
#27
New menu system
Well, as I said before, it'd be hell to make the user go through every button on one row just to get to the next row, so the table will, at the very least, allow users to move directly one row down. If I understand your idea correctly, each cell will have two buttons - one with an X that is the delete button for that control, and one that represents the control itself (this one will have the icon on it representing whatever control it is). Clicking on the button for the control would allow the user to change it. The other reason I want to have a table widget is that not only will it be a graphical separator, but it will also contain all the logic for managing the actions and their controls (actually, it will manage the actions and cells, and the cells will each manage a control). At least, this is how I'm visualizing it all in my head...we'll see how the code actually ends up. But it should be something like that.I think that one thing it should do is keep track of which controls are assigned, and check to see if a given control already has an assignment when it is assigned to something. Let's say, for instance, that I assign the left arrow key to "steer left", and then try to assign the left arrow key to "replay skip back". I think that when this happens, the game should clear the left arrow key assignment for "steer left". Does that make sense? Basically the menu will protect the game from double (or triple) assigning a given control, as a means of error prevention. I mean, imagine if a user accidentally mapped but steer left and steer right to the left arrow key...this would be bad. Things would not work. Make sense?One more thing - I want to move the controls file to our wonderful configfile format. I think this would make "control profiles" easily possible in the way it made car parts easy. My only question is how to set up the file? I guess this is how I think it'd be best done. Tell me if you can think of a better way.<pre>[ steer_left ]num_ctrls = 2ctrl-00-type = keyctrl-00-key = left_arrowctrl-00-down = 1ctrl-00-held = 0ctrl-01-type = joyaxisctrl-01-device = 0ctrl-01-axis = 1ctrl-01-sign = +[ steer_right ]...</pre>The existing CONTROLS class (in controls.cc) will need to be modified to handle this format. Alternately, I could modify the settings class to have a GetControl that would be the same as Get but use the controls file instead, or something like that. Not exactly sure how to handle that, any ideas?
Reply


Messages In This Thread
New menu system - by thelusiv - 11-05-2005, 03:01 AM
New menu system - by gianni - 11-05-2005, 05:20 PM
New menu system - by joevenzon_phpbb2_import3 - 11-05-2005, 07:53 PM
New menu system - by thelusiv - 11-07-2005, 10:08 AM
New menu system - by joevenzon_phpbb2_import3 - 11-07-2005, 10:30 AM
New menu system - by thelusiv - 11-07-2005, 01:33 PM
New menu system - by thelusiv - 11-07-2005, 02:09 PM
New menu system - by gianni - 11-07-2005, 02:33 PM
New menu system - by thelusiv - 11-07-2005, 03:10 PM
New menu system - by Nenillo - 11-07-2005, 03:10 PM
New menu system - by thelusiv - 11-07-2005, 03:23 PM
New menu system - by joevenzon_phpbb2_import3 - 11-07-2005, 10:56 PM
New menu system - by thelusiv - 11-08-2005, 10:30 AM
New menu system - by thelusiv - 11-28-2005, 01:26 PM
New menu system - by thelusiv - 11-28-2005, 07:24 PM
New menu system - by thelusiv - 11-30-2005, 03:28 AM
New menu system - by thelusiv - 11-30-2005, 02:32 PM
New menu system - by joevenzon_phpbb2_import3 - 11-30-2005, 11:37 PM
New menu system - by gianni - 12-01-2005, 07:14 AM
New menu system - by thelusiv - 12-01-2005, 09:26 AM
New menu system - by thelusiv - 12-07-2005, 12:04 PM
New menu system - by joevenzon_phpbb2_import3 - 12-07-2005, 11:12 PM
New menu system - by thelusiv - 12-08-2005, 05:46 PM
New menu system - by joevenzon_phpbb2_import3 - 12-08-2005, 09:38 PM
New menu system - by thelusiv - 12-09-2005, 09:30 AM
New menu system - by joevenzon_phpbb2_import3 - 12-09-2005, 10:30 AM
New menu system - by thelusiv - 12-09-2005, 02:29 PM
New menu system - by joevenzon_phpbb2_import3 - 12-09-2005, 09:24 PM
New menu system - by thelusiv - 03-12-2006, 11:10 PM
New menu system - by joevenzon_phpbb2_import3 - 03-13-2006, 12:39 AM
New menu system - by joevenzon_phpbb2_import3 - 03-13-2006, 12:41 AM
New menu system - by thelusiv - 03-13-2006, 01:40 AM
New menu system - by thelusiv - 03-13-2006, 09:06 PM
New menu system - by thelusiv - 03-20-2006, 01:50 AM
New menu system - by joevenzon_phpbb2_import3 - 03-20-2006, 10:29 AM
[No subject] - by thelusiv - 04-17-2006, 03:45 AM
[No subject] - by FFuser - 04-18-2006, 01:01 PM
[No subject] - by thelusiv - 04-19-2006, 02:43 AM
[No subject] - by abs1nth - 04-19-2006, 06:35 AM
[No subject] - by thelusiv - 04-19-2006, 08:14 AM
[No subject] - by abs1nth - 04-19-2006, 01:16 PM
[No subject] - by thelusiv - 04-19-2006, 05:14 PM
[No subject] - by thelusiv - 04-22-2006, 03:45 AM
[No subject] - by thelusiv - 04-23-2006, 03:24 AM
[No subject] - by thelusiv - 04-24-2006, 12:19 AM
[No subject] - by thelusiv - 04-24-2006, 04:24 AM
[No subject] - by thelusiv - 04-24-2006, 04:46 AM
[No subject] - by abs1nth - 04-24-2006, 02:53 PM
[No subject] - by thelusiv - 04-24-2006, 03:15 PM
[No subject] - by thelusiv - 04-24-2006, 06:57 PM
[No subject] - by thelusiv - 04-25-2006, 04:32 PM
[No subject] - by thelusiv - 04-26-2006, 03:39 AM
[No subject] - by abs1nth - 04-27-2006, 10:41 AM
[No subject] - by thelusiv - 04-27-2006, 12:23 PM
[No subject] - by thelusiv - 04-28-2006, 12:44 AM
[No subject] - by abs1nth - 04-29-2006, 05:30 PM
[No subject] - by thelusiv - 04-30-2006, 04:23 AM
[No subject] - by thelusiv - 05-03-2006, 03:47 AM
[No subject] - by thelusiv - 05-04-2006, 12:00 AM
[No subject] - by thelusiv - 05-04-2006, 03:02 AM
[No subject] - by thelusiv - 05-05-2006, 02:59 AM
[No subject] - by abs1nth - 05-05-2006, 07:45 PM
[No subject] - by thelusiv - 05-06-2006, 01:56 PM
[No subject] - by thelusiv - 05-07-2006, 07:30 PM
[No subject] - by thelusiv - 06-07-2006, 02:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)