M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Imgui Class Reference

Public Types

enum  ColorStyle : int {
  Text = 0 ,
  TextDisabled ,
  WindowBg ,
  ChildWindowBg ,
  PopupBg ,
  Border ,
  BorderShadow ,
  FrameBg ,
  FrameBgHovered ,
  FrameBgActive ,
  TitleBg ,
  TitleBgCollapsed ,
  TitleBgActive ,
  MenuBarBg ,
  ScrollbarBg ,
  ScrollbarGrab ,
  ScrollbarGrabHovered ,
  ScrollbarGrabActive ,
  ComboBg ,
  CheckMark ,
  SliderGrab ,
  SliderGrabActive ,
  Button ,
  ButtonHovered ,
  ButtonActive ,
  Header ,
  HeaderHovered ,
  HeaderActive ,
  Column ,
  ColumnHovered ,
  ColumnActive ,
  ResizeGrip ,
  ResizeGripHovered ,
  ResizeGripActive ,
  CloseButton ,
  CloseButtonHovered ,
  CloseButtonActive ,
  PlotLines ,
  PlotLinesHovered ,
  PlotHistogram ,
  PlotHistogramHovered ,
  TextSelectedBg ,
  ModalWindowDarkening
}
 call BeginMainThreadScope() after NewFrame() but before Begin(string) More...
 

Static Public Member Functions

static void BeginMainThreadScope ()
 
static void EndMainThreadScope ()
 
static void PushStyleColor (ColorStyle style, ref Vec3 color)
 
static void PopStyleColor ()
 
static void NewFrame ()
 
static void Render ()
 
static void Begin (string text)
 
static void Begin (string text, ref bool is_open)
 
static void End ()
 
static void Text (string text)
 
static bool Checkbox (string text, ref bool is_checked)
 
static bool TreeNode (string name)
 
static void TreePop ()
 
static void Separator ()
 
static bool Button (string text)
 
static void PlotLines (string name, float[] values, int valuesCount, int valuesOffset, string overlayText, float minScale, float maxScale, float graphWidth, float graphHeight, int stride)
 
static void ProgressBar (float progress)
 
static void NewLine ()
 
static void SameLine (float posX=0.0f, float spacingWidth=0.0f)
 
static bool Combo (string label, ref int selectedIndex, string items)
 
static bool InputInt (string label, ref int value)
 
static bool SliderFloat (string label, ref float value, float min, float max)
 
static void Columns (int count=1, string id="", bool border=true)
 
static void NextColumn ()
 
static bool RadioButton (string label, bool active)
 
static bool CollapsingHeader (string label)
 
static bool IsItemHovered ()
 
static void SetTooltip (string label)
 
static bool SmallButton (string label)
 
static bool InputFloat (string label, ref float val, float step, float stepFast, int decimalPrecision=-1)
 
static bool InputFloat2 (string label, ref float val0, ref float val1, int decimalPrecision=-1)
 
static bool InputFloat3 (string label, ref float val0, ref float val1, ref float val2, int decimalPrecision=-1)
 
static bool InputFloat4 (string label, ref float val0, ref float val1, ref float val2, ref float val3, int decimalPrecision=-1)
 

Member Enumeration Documentation

◆ ColorStyle

Enumerator
Text 
TextDisabled 
WindowBg 
ChildWindowBg 
PopupBg 
Border 
BorderShadow 
FrameBg 
FrameBgHovered 
FrameBgActive 
TitleBg 
TitleBgCollapsed 
TitleBgActive 
MenuBarBg 
ScrollbarBg 
ScrollbarGrab 
ScrollbarGrabHovered 
ScrollbarGrabActive 
ComboBg 
CheckMark 
SliderGrab 
SliderGrabActive 
Button 
ButtonHovered 
ButtonActive 
Header 
HeaderHovered 
HeaderActive 
Column 
ColumnHovered 
ColumnActive 
ResizeGrip 
ResizeGripHovered 
ResizeGripActive 
CloseButton 
CloseButtonHovered 
CloseButtonActive 
PlotLines 
PlotLinesHovered 
PlotHistogram 
PlotHistogramHovered 
TextSelectedBg 
ModalWindowDarkening 

Member Function Documentation

◆ BeginMainThreadScope()

static void TaleWorlds.Engine.Imgui.BeginMainThreadScope ( )
static

◆ EndMainThreadScope()

static void TaleWorlds.Engine.Imgui.EndMainThreadScope ( )
static

◆ PushStyleColor()

static void TaleWorlds.Engine.Imgui.PushStyleColor ( ColorStyle  style,
ref Vec3  color 
)
static

◆ PopStyleColor()

static void TaleWorlds.Engine.Imgui.PopStyleColor ( )
static

◆ NewFrame()

static void TaleWorlds.Engine.Imgui.NewFrame ( )
static

◆ Render()

static void TaleWorlds.Engine.Imgui.Render ( )
static

◆ Begin() [1/2]

static void TaleWorlds.Engine.Imgui.Begin ( string  text)
static

◆ Begin() [2/2]

static void TaleWorlds.Engine.Imgui.Begin ( string  text,
ref bool  is_open 
)
static

◆ End()

static void TaleWorlds.Engine.Imgui.End ( )
static

◆ Text()

static void TaleWorlds.Engine.Imgui.Text ( string  text)
static

◆ Checkbox()

static bool TaleWorlds.Engine.Imgui.Checkbox ( string  text,
ref bool  is_checked 
)
static

◆ TreeNode()

static bool TaleWorlds.Engine.Imgui.TreeNode ( string  name)
static

◆ TreePop()

static void TaleWorlds.Engine.Imgui.TreePop ( )
static

◆ Separator()

static void TaleWorlds.Engine.Imgui.Separator ( )
static

◆ Button()

static bool TaleWorlds.Engine.Imgui.Button ( string  text)
static

◆ PlotLines()

static void TaleWorlds.Engine.Imgui.PlotLines ( string  name,
float[]  values,
int  valuesCount,
int  valuesOffset,
string  overlayText,
float  minScale,
float  maxScale,
float  graphWidth,
float  graphHeight,
int  stride 
)
static

◆ ProgressBar()

static void TaleWorlds.Engine.Imgui.ProgressBar ( float  progress)
static

◆ NewLine()

static void TaleWorlds.Engine.Imgui.NewLine ( )
static

◆ SameLine()

static void TaleWorlds.Engine.Imgui.SameLine ( float  posX = 0::0f,
float  spacingWidth = 0::0f 
)
static

◆ Combo()

static bool TaleWorlds.Engine.Imgui.Combo ( string  label,
ref int  selectedIndex,
string  items 
)
static

◆ InputInt()

static bool TaleWorlds.Engine.Imgui.InputInt ( string  label,
ref int  value 
)
static

◆ SliderFloat()

static bool TaleWorlds.Engine.Imgui.SliderFloat ( string  label,
ref float  value,
float  min,
float  max 
)
static

◆ Columns()

static void TaleWorlds.Engine.Imgui.Columns ( int  count = 1,
string  id = "",
bool  border = true 
)
static

◆ NextColumn()

static void TaleWorlds.Engine.Imgui.NextColumn ( )
static

◆ RadioButton()

static bool TaleWorlds.Engine.Imgui.RadioButton ( string  label,
bool  active 
)
static

◆ CollapsingHeader()

static bool TaleWorlds.Engine.Imgui.CollapsingHeader ( string  label)
static

◆ IsItemHovered()

static bool TaleWorlds.Engine.Imgui.IsItemHovered ( )
static

◆ SetTooltip()

static void TaleWorlds.Engine.Imgui.SetTooltip ( string  label)
static

◆ SmallButton()

static bool TaleWorlds.Engine.Imgui.SmallButton ( string  label)
static

◆ InputFloat()

static bool TaleWorlds.Engine.Imgui.InputFloat ( string  label,
ref float  val,
float  step,
float  stepFast,
int  decimalPrecision = -1 
)
static

◆ InputFloat2()

static bool TaleWorlds.Engine.Imgui.InputFloat2 ( string  label,
ref float  val0,
ref float  val1,
int  decimalPrecision = -1 
)
static

◆ InputFloat3()

static bool TaleWorlds.Engine.Imgui.InputFloat3 ( string  label,
ref float  val0,
ref float  val1,
ref float  val2,
int  decimalPrecision = -1 
)
static

◆ InputFloat4()

static bool TaleWorlds.Engine.Imgui.InputFloat4 ( string  label,
ref float  val0,
ref float  val1,
ref float  val2,
ref float  val3,
int  decimalPrecision = -1 
)
static