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:
2008-07-04 19:00:56 +00:00
parent 733b4c9351
commit 107b78a3d2
4 changed files with 20 additions and 22 deletions

View File

@@ -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;