patch [#32791] Spelling mistakes corrected.
from Sunny Gogoi (darkowlzz)
This commit is contained in:
@@ -50,7 +50,7 @@ Contents
|
||||
- It works with only OpenGL calls, for the full 100%. This means that it has some quirks
|
||||
built-in to work with all OS's and OpenGL versions. Especially frontbuffer drawing is
|
||||
a continuous point of attention. Buttons can be drawn with any window matrix. However,
|
||||
errors can still occor when buttons are created in windows with non-standard glViewports.
|
||||
errors can still occur when buttons are created in windows with non-standard glViewports.
|
||||
|
||||
- The code was written to replace the old 1.8 button system, but under high pressure. Quite
|
||||
some button methods from the old system were copied for that reason.
|
||||
@@ -221,7 +221,7 @@ void uiBlockSetButmFunc(uiBlock *block, void (*menufunc)(void *arg, int event),
|
||||
void uiAutoBlock(uiBlock *block, float minx, float miny, float sizex, float sizey, UI_BLOCK_ROWS)
|
||||
|
||||
Sets the buttons in this block to automatically align, and fit within boundaries.
|
||||
Internally it allows multiple collums or rows as well. Only 'row order' has been implemented.
|
||||
Internally it allows multiple colums or rows as well. Only 'row order' has been implemented.
|
||||
The uiDefBut definitions don't need coordinates as input here, but instead:
|
||||
- first value (x1) to indicate row number
|
||||
- width and height values (if filled in) will be used to define a relative width/height.
|
||||
@@ -346,7 +346,7 @@ type:
|
||||
without returnvalues, the first item gets value 0 (incl. title!)
|
||||
Example: "Do something %t| turn left %2| turn right %1| nothing %0"
|
||||
|
||||
11. COL
|
||||
11. COLOR
|
||||
A special button that only visualizes a RGB value
|
||||
In 'retval' you can put a code, which is used to identify for sliders if it needs
|
||||
redraws while using the sliders. Check button '5'.
|
||||
@@ -363,7 +363,7 @@ uiBut *uiDefIconBut(uiBlock *block, int type, int retval, int icon,
|
||||
float min, float max, float a1, float a2, char *tip)
|
||||
|
||||
Same syntax and types available as previous uiDefBut, but now with an icon code
|
||||
instead of a name. THe icons are numbered in resources.c
|
||||
instead of a name. The icons are numbered in resources.c
|
||||
|
||||
uiBut *uiDefIconTextButF(uiBlock *block, int type, int retval, int icon, char *str,
|
||||
short x1, short y1, short x2, short y2, float *poin,
|
||||
@@ -409,7 +409,7 @@ void uiDefBlockBut(uiBlock *block, uiBlockFuncFP func, void *arg, char *str,
|
||||
uiDefButS(block, TOG|BIT|2, 0, "Two Sided", xco, yco-=20, 75, 19, &U.vrmlflag, 0.0, 0.0, 0, 0, "");
|
||||
|
||||
uiBlockSetDirection(block, UI_RIGHT);
|
||||
uiTextBoundsBlock(block, 50); // checks for fontsize
|
||||
uiTextBoundsBlock(block, 50); /* checks for fontsize */
|
||||
|
||||
return block;
|
||||
}
|
||||
|
@@ -835,10 +835,11 @@ void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname
|
||||
bt = block->buttons.last;
|
||||
bt->flag = UI_TEXT_LEFT;
|
||||
}
|
||||
else /* XXX bug here, collums draw bottom item badly */
|
||||
else { /* XXX bug here, colums draw bottom item badly */
|
||||
uiItemS(column);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (free) {
|
||||
MEM_freeN(item);
|
||||
|
Reference in New Issue
Block a user