MCPcopy Create free account
hub / github.com/TurningWheel/Barony / getContextMenuOptionOrder

Function getContextMenuOptionOrder

src/interface/playerinventory.cpp:4402–4438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4400}
4401
4402int getContextMenuOptionOrder(const int player, ItemContextMenuPrompts prompt)
4403{
4404 std::string bindingName = getContextMenuOptionBindingName(player, prompt);
4405 if ( bindingName == "MenuAlt1" )
4406 {
4407 return 2;
4408//#ifdef NINTENDO
4409// return 1;
4410//#else
4411//#endif
4412 }
4413 else if ( bindingName == "MenuAlt2" )
4414 {
4415 return 1;
4416//#ifdef NINTENDO
4417// return 2;
4418//#else
4419//#endif
4420 }
4421 else if ( bindingName == "MenuConfirm" )
4422 {
4423 return 4;
4424//#ifdef NINTENDO
4425// return 3;
4426//#else
4427//#endif
4428 }
4429 else if ( bindingName == "MenuCancel" )
4430 {
4431 return 3;
4432//#ifdef NINTENDO
4433// return 4;
4434//#else
4435//#endif
4436 }
4437 return 5;
4438}
4439
4440void Player::HUD_t::updateFrameTooltip(Item* item, const int x, const int y, int justify, Frame* parentFrame)
4441{

Callers 1

finalizeFrameTooltipMethod · 0.85

Calls 1

Tested by

no test coverage detected