Skip to content

Commit

Permalink
Community version labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulawik committed Sep 28, 2020
1 parent b50c06d commit 666e8be
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions HPL2/tools/editors/common/EditorWindowLowerToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,16 @@ iWidget* iEditorWindowLowerToolbar::AddClipPlaneControls()
return mpGClipPlanes;
}

iWidget* iEditorWindowLowerToolbar::AddCommunityCredits()
{
//mpVersionLabelDummy = mpSet->CreateWidgetGroup(0, cVector2f(290,43), _W("Credits"), mpBGFrame);
mpVersionLabelDummy = mpSet->CreateWidgetDummy(0, mpBGFrame);

mpGridPresetLabel = mpSet->CreateWidgetLabel(cVector3f(200, 4, 0.1f), cVector2f(32, 20), _W("Level Editor - Community version 1.0"), mpVersionLabelDummy);

return mpVersionLabelDummy;
}

//---------------------------------------------------------------

void iEditorWindowLowerToolbar::SetFocusedClipPlane(int alX)
Expand Down
5 changes: 5 additions & 0 deletions HPL2/tools/editors/common/EditorWindowLowerToolbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class iEditorWindowLowerToolbar : public iEditorWindow
iWidget* AddLightingControls();
iWidget* AddCameraControls();
iWidget* AddClipPlaneControls();
iWidget* AddCommunityCredits();

void SetFocusedClipPlane(int alX);
int GetFocusedClipPlane();
Expand Down Expand Up @@ -100,6 +101,10 @@ class iEditorWindowLowerToolbar : public iEditorWindow
cWidgetButton* mpBClipNormalSwitch;
cEditorInputNumber* mpInpClipPlaneHeight;
cWidgetButton* mpBClipPlaneCullSide;

//Credits
cWidgetDummy* mpVersionLabelDummy;
cWidgetLabel* mpVersionLabel;
};

//--------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion HPL2/tools/editors/leveleditor/LevelEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ void cLevelEditor::OnInitLayout()
vHandlePos += cVector3f(pHandle->GetSize().x+10, 0, 0);
pHandle = mpLowerToolbar->AddClipPlaneControls();
pHandle->SetPosition(vHandlePos);
//New stuff:
vHandlePos += cVector3f(pHandle->GetSize().x+10, 0, 0);
pHandle = mpLowerToolbar->AddCommunityCredits();
pHandle->SetPosition(vHandlePos);

////////////////////////////////////
// Search Window
Expand Down Expand Up @@ -685,7 +689,7 @@ void cLevelEditor::OnLoadConfig()
}

// Window caption
msCaption = "HPL Level Editor";
msCaption = "HPL Level Editor (Community Edition)";

SetLogFile(GetHomeDir() + _W("LevelEditor.log"));

Expand Down

0 comments on commit 666e8be

Please sign in to comment.