mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-04 06:38:45 +00:00
CogInput: Improve gamepad window
can control that stick by dragging it
This commit is contained in:
@@ -206,10 +206,16 @@ void FCogWindowWidgets::PopBackColor()
|
||||
ImGui::PopStyleColor(9);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
float FCogWindowWidgets::GetShortWidth()
|
||||
{
|
||||
return ImGui::GetFontSize() * 10;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void FCogWindowWidgets::SetNextItemToShortWidth()
|
||||
{
|
||||
ImGui::SetNextItemWidth(ImGui::GetFontSize() * 10);
|
||||
ImGui::SetNextItemWidth(GetShortWidth());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
|
||||
static void PopBackColor();
|
||||
|
||||
static float GetShortWidth();
|
||||
|
||||
static void SetNextItemToShortWidth();
|
||||
|
||||
static float GetFontWidth();
|
||||
|
||||
Reference in New Issue
Block a user