コード例 #1
0
ファイル: slider.c プロジェクト: nexAkari/RocketMinsta
void configureSliderVisualsSlider(entity me, float sz, float theAlign, float theTextSpace, string gfx)
{
	configureLabelLabel(me, NULL, sz, theAlign);
	me.textSpace = theTextSpace;
	me.keepspaceLeft = if(theTextSpace == 0) 0 else 1 - theTextSpace;
	me.src = gfx;
}
コード例 #2
0
ファイル: button.c プロジェクト: Exaeta/RocketMinsta
void configureButtonButton(entity me, string txt, float sz, string gfx)
{
	configureLabelLabel(me, txt, sz, me.srcMulti ? 0.5 : 0);
	me.src = gfx;
}
コード例 #3
0
ファイル: inputbox.c プロジェクト: atphalix/nexuiz
void configureInputBoxInputBox(entity me, string theText, float theCursorPos, float theFontSize, string gfx)
{
	configureLabelLabel(me, theText, theFontSize, 0.0);
	me.src = gfx;
	me.cursorPos = theCursorPos;
}