socket connection direction wip
This commit is contained in:
@@ -429,6 +429,13 @@ namespace Tools
|
||||
for (int32_t sIdx = 0; sIdx < mdl.SocketCount; ++sIdx)
|
||||
{
|
||||
Tools::ModelDropdown(card.Sockets[sIdx].Model, mdl.Sockets[sIdx].Name);
|
||||
int val = card.Sockets[sIdx].ConnectionDirection;
|
||||
ImGui::PushID(sIdx);
|
||||
if (ImGui::Combo("Connection Direction", &val, "North\0East\0South\0West\0"))
|
||||
{
|
||||
card.Sockets[sIdx].ConnectionDirection = val;
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ enum PuzzleElementType(u8)
|
||||
type CardSocket
|
||||
{
|
||||
ModelHandle Model
|
||||
u8 ConnectionDirection
|
||||
}
|
||||
|
||||
type StaticPuzzleCard
|
||||
|
||||
Reference in New Issue
Block a user