Made some python game engine funcs use NOARGS, getAxisVec was using wrong multiplication order.
Use BUT_TOGDUAL for controllers init states so you can see what the init state is for any controller without using the button to check.
This commit is contained in:
@@ -180,8 +180,12 @@ static void ui_draw_icon(uiBut *but, BIFIconID icon, int blend)
|
||||
height= ICON_HEIGHT;
|
||||
|
||||
if(but->flag & UI_ICON_LEFT) {
|
||||
if (but->type==BUT_TOGDUAL && but->drawstr[0]) {
|
||||
xs= but->x1-1.0;
|
||||
if (but->type==BUT_TOGDUAL) {
|
||||
if (but->drawstr[0]) {
|
||||
xs= but->x1-1.0;
|
||||
} else {
|
||||
xs= (but->x1+but->x2- height)/2.0;
|
||||
}
|
||||
}
|
||||
else if (but->type==BUTM ) {
|
||||
xs= but->x1+1.0;
|
||||
|
||||
Reference in New Issue
Block a user