mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Make input lines mostly work.
There is still a problem with the placement of the input line text relative to the text box caused by vertical movement being excessive.
This commit is contained in:
parent
8d3508cf20
commit
e878ace83b
3 changed files with 9 additions and 9 deletions
|
@ -454,7 +454,7 @@ MENU_player_options (PLItem *plist)
|
|||
[view setText:"Name"];
|
||||
[player_options addView:view];
|
||||
|
||||
view = [[Text alloc] initWithComponents:70 :PLAYER_CONF_Y_PAD + 20 :32 :8];
|
||||
view = [[Text alloc] initWithComponents:70 :PLAYER_CONF_Y_PAD + 28 :32 :8];
|
||||
[view setText:"Team"];
|
||||
[player_options addView:view];
|
||||
|
||||
|
|
|
@ -34,11 +34,11 @@ string (inputline_t il) InputLine_GetText = #0;
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setBasePos: (Point)pos
|
||||
- (void) setBasePosFromView: (View *) view
|
||||
{
|
||||
[super setBasePos:pos];
|
||||
control.xbase = pos.x;
|
||||
control.ybase = pos.y;
|
||||
[super setBasePosFromView: view];
|
||||
control.xbase = xabs;
|
||||
control.ybase = yabs;
|
||||
}
|
||||
|
||||
- (void) setWidth: (integer)width
|
||||
|
@ -120,10 +120,10 @@ string (inputline_t il) InputLine_GetText = #0;
|
|||
return [input_line text];
|
||||
}
|
||||
|
||||
- (void) setBasePos:(Point)pos
|
||||
- (void) setBasePosFromView: (View *) view
|
||||
{
|
||||
[super setBasePos:pos];
|
||||
[input_line setBasePos:xabs y:yabs];
|
||||
[super setBasePosFromView: view];
|
||||
[input_line setBasePosFromView: self];
|
||||
}
|
||||
|
||||
- (void) draw
|
||||
|
|
|
@ -30,7 +30,7 @@ struct il_data_t {
|
|||
|
||||
- (id) initWithBounds: (Rect)aRect promptCharacter: (integer)char;
|
||||
|
||||
- (void) setBasePos: (Point)pos;
|
||||
- (void) setBasePosFromView: (View *) view;
|
||||
- (void) setWidth: (integer)width;
|
||||
- (void) cursor: (BOOL)cursor;
|
||||
- (void) draw;
|
||||
|
|
Loading…
Reference in a new issue