//GuiLabel Functions void GuiLabel::SetText(p2SString t) { if (tex) SDL_DestroyTexture(tex); text = t.GetString(); tex = App->font->Print(text.GetString()); uint w, h; App->tex->GetSize(tex, w, h); SetSize(w, h); }
void fCVar::SetValueToFloat(p2SString& value) { fValue = atof(value.GetString()); }
fCVar::fCVar(p2SString& sValue) : CVar(sValue) { fValue = atof(sValue.GetString()); }
CVar::CVar(const p2SString& nameIdentifier) { sValue.create(nameIdentifier.GetString()); }
void iCVar::SetValueToInt(p2SString& value) { iValue = atoi(value.GetString()); }
iCVar::iCVar(p2SString& sValue) : CVar(sValue) { iValue = atoi(sValue.GetString()); }