Skip to content

Commit

Permalink
Very ugly fix for color picker in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Aug 27, 2015
1 parent ecfa185 commit e39fb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/editor/editor.cpp
Expand Up @@ -2736,7 +2736,7 @@ int CEditor::DoProperties(CUIRect *pToolBox, CProperty *pProps, int *pIDs, int *
Shifter.HMargin(1.0f, &Shifter);

int NewColorHex = pProps[i].m_Value&0xff;
NewColorHex |= UiDoValueSelector(((char *)&pIDs[i]+4), &Shifter, "", (pProps[i].m_Value >> 8)&0xFFFFFF, 0, 0xFFFFFF, 1, 1.0f, "Use left mouse button to drag and change the color value. Hold shift to be more precise. Rightclick to edit as text.", false, true) << 8;
NewColorHex |= UiDoValueSelector(((char *)&pIDs[i]-1), &Shifter, "", (pProps[i].m_Value >> 8)&0xFFFFFF, 0, 0xFFFFFF, 1, 1.0f, "Use left mouse button to drag and change the color value. Hold shift to be more precise. Rightclick to edit as text.", false, true) << 8;

// color picker
vec4 Color = vec4(
Expand Down

0 comments on commit e39fb6b

Please sign in to comment.