Home
last modified time | relevance | path

Searched refs:SelectedViewport (Results 1 – 25 of 32) sorted by relevance

12

/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ui/
H A Dinterface.cpp232 UI.SelectedViewport->Center(pos); in UiCenterOnGroup()
473 UI.SelectedViewport->Center(pos); in UiCenterOnSelected()
484 SavedMapPosition[position] = UI.SelectedViewport->MapPos; in UiSaveMapPosition()
542 UI.SelectedViewport->Center(unit->GetMapPixelPosCenter()); in UiFindIdleWorker()
579 UI.SelectedViewport->Center(unit->GetMapPixelPosCenter()); in UiFindLevelUpUnit()
602 UI.SelectedViewport->Center(unit->GetMapPixelPosCenter()); in UiFindHeroUnit()
623 UI.SelectedViewport->Unit = nullptr; in UiTrackUnit()
626 if (UI.SelectedViewport->Unit == Selected[0]) { in UiTrackUnit()
627 UI.SelectedViewport->Unit = nullptr; in UiTrackUnit()
629 UI.SelectedViewport->Unit = Selected[0]; in UiTrackUnit()
[all …]
H A Dmouse.cpp1347 UI.SelectedViewport->Restrict(CursorScreenPos.x, CursorScreenPos.y); in RestrictCursorToViewport()
1391 UI.SelectedViewport->Restrict(CursorScreenPos.x, CursorScreenPos.y); in UIHandleMouseMove()
1418 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(cursorPos, UI.CurrentMapLayer)); in UIHandleMouseMove()
2369 if ((MouseButtons & LeftButton) && UI.SelectedViewport != UI.MouseViewport) { in UIHandleButtonDown_OnMap()
2370 UI.SelectedViewport = UI.MouseViewport; in UIHandleButtonDown_OnMap()
2372 static_cast<long int>(UI.SelectedViewport - UI.Viewports)); in UIHandleButtonDown_OnMap()
2660 UI.SelectedViewport->Center(Selected[0]->GetMapPixelPosCenter()); in UIHandleButtonUp_OnButton()
2674 if (UI.SelectedViewport->Unit == Selected[0]) { in UIHandleButtonUp_OnButton()
2675 UI.SelectedViewport->Unit = nullptr; in UIHandleButtonUp_OnButton()
2677 UI.SelectedViewport->Unit = Selected[0]; in UIHandleButtonUp_OnButton()
[all …]
H A Dui.cpp169 SelectedViewport(nullptr), NumViewports(0), in CUserInterface()
233 UI.SelectedViewport = UI.Viewports; in InitUserInterface()
580 UI.SelectedViewport = std::min(UI.Viewports + UI.NumViewports - 1, UI.SelectedViewport); in FinishViewportModeConfiguration()
/dports/games/stratagus/stratagus-3.2.0/src/editor/
H A Deditloop.cpp1040 if (UI.SelectedViewport) { in EditorUpdateDisplay()
1042 UI.Minimap.DrawViewportArea(*UI.SelectedViewport); in EditorUpdateDisplay()
1123 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(tilePos)); in EditorCallbackButtonDown()
1219 if ((MouseButtons & LeftButton) && UI.SelectedViewport != vp) { in EditorCallbackButtonDown()
1221 UI.SelectedViewport = vp; in EditorCallbackButtonDown()
1582 Vec2i vpTilePos = UI.SelectedViewport->MapPos; in EditorCallbackMouse()
1584 if (CursorScreenPos.x <= UI.SelectedViewport->GetTopLeftPos().x) { in EditorCallbackMouse()
1586 UI.SelectedViewport->Set(vpTilePos, Map.Tileset->getPixelTileSize() / 2); in EditorCallbackMouse()
1592 if (CursorScreenPos.y <= UI.SelectedViewport->GetTopLeftPos().y) { in EditorCallbackMouse()
1623 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(tilePos)); in EditorCallbackMouse()
[all …]
/dports/games/stratagus/stratagus-3.2.0/src/ui/
H A Dinterface.cpp185 UI.SelectedViewport->Center(pos); in UiCenterOnGroup()
411 UI.SelectedViewport->Center(pos); in UiCenterOnSelected()
421 SavedMapPosition[position] = UI.SelectedViewport->MapPos; in UiSaveMapPosition()
431 UI.SelectedViewport->Set(SavedMapPosition[position], PixelTileSize / 2); in UiRecallMapPosition()
476 UI.SelectedViewport->Center(unit->GetMapPixelPosCenter()); in UiFindIdleWorker()
497 UI.SelectedViewport->Unit = NULL; in UiTrackUnit()
500 if (UI.SelectedViewport->Unit == Selected[0]) { in UiTrackUnit()
501 UI.SelectedViewport->Unit = NULL; in UiTrackUnit()
503 UI.SelectedViewport->Unit = Selected[0]; in UiTrackUnit()
H A Dmouse.cpp882 UI.SelectedViewport->Restrict(CursorScreenPos.x, CursorScreenPos.y); in RestrictCursorToViewport()
933 UI.SelectedViewport->Restrict(CursorScreenPos.x, CursorScreenPos.y); in UIHandleMouseMove()
960 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(cursorPos)); in UIHandleMouseMove()
1104 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(cursorPos)); in UIHandleMouseMove()
1633 UI.SelectedViewport = UI.MouseViewport; in UIHandleButtonDown_OnMap()
1635 static_cast<long int>(UI.SelectedViewport - UI.Viewports)); in UIHandleButtonDown_OnMap()
1754 UI.SelectedViewport->Center(Selected[0]->GetMapPixelPosCenter()); in UIHandleButtonDown_OnButton()
1821 if (UI.SelectedViewport->Unit == Selected[0]) { in UIHandleButtonDown_OnButton()
1822 UI.SelectedViewport->Unit = NULL; in UIHandleButtonDown_OnButton()
1824 UI.SelectedViewport->Unit = Selected[0]; in UIHandleButtonDown_OnButton()
[all …]
H A Dui.cpp141 SelectedViewport(NULL), NumViewports(0), in CUserInterface()
233 UI.SelectedViewport = UI.Viewports; in InitUserInterface()
493 UI.SelectedViewport = std::min(UI.Viewports + UI.NumViewports - 1, UI.SelectedViewport); in FinishViewportModeConfiguration()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/editor/
H A Deditloop.cpp1520 if (UI.SelectedViewport) { in EditorUpdateDisplay()
1522 UI.Minimap.DrawViewportArea(*UI.SelectedViewport); in EditorUpdateDisplay()
1765 if ((MouseButtons & LeftButton) && UI.SelectedViewport != vp) { in EditorCallbackButtonDown()
1767 UI.SelectedViewport = vp; in EditorCallbackButtonDown()
2225 Vec2i vpTilePos = UI.SelectedViewport->MapPos; in EditorCallbackMouse()
2227 if (CursorScreenPos.x <= UI.SelectedViewport->GetTopLeftPos().x) { in EditorCallbackMouse()
2229 UI.SelectedViewport->Set(vpTilePos, Map.GetCurrentPixelTileSize() / 2); in EditorCallbackMouse()
2232 UI.SelectedViewport->Set(vpTilePos, Map.GetCurrentPixelTileSize() / 2); in EditorCallbackMouse()
2235 if (CursorScreenPos.y <= UI.SelectedViewport->GetTopLeftPos().y) { in EditorCallbackMouse()
2237 UI.SelectedViewport->Set(vpTilePos, Map.GetCurrentPixelTileSize() / 2); in EditorCallbackMouse()
[all …]
/dports/games/stratagus/stratagus-3.2.0/src/sound/
H A Dsound.cpp267 unit.IX - UI.SelectedViewport->MapPos.x * PixelTileSize.x) * 256 / in CalculateStereo()
268 ((UI.SelectedViewport->MapWidth - 1) * PixelTileSize.x)) - 128; in CalculateStereo()
348 UI.SelectedViewport->MapPos.x * PixelTileSize.x) * 256 / in PlayMissileSound()
349 ((UI.SelectedViewport->MapWidth - 1) * PixelTileSize.x)) - 128; in PlayMissileSound()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/stratagus/
H A Dselection.cpp92 _TrackUnit = UI.SelectedViewport->Unit; in SaveSelection()
111 UI.SelectedViewport->Unit = _TrackUnit; in RestoreSelection()
126 UI.SelectedViewport->Unit = nullptr; in UnSelectAll()
327 UI.SelectedViewport->Unit = nullptr; in UnSelectUnit()
814 if (!unit.IsVisibleInViewport(*UI.SelectedViewport)) { in SelectUnitsInRectangle()
832 if (!unit.IsVisibleInViewport(*UI.SelectedViewport)) { in SelectUnitsInRectangle()
H A Dmainloop.cpp135 vp = UI.SelectedViewport; in DoScrollArea()
251 UI.Minimap.DrawViewportArea(*UI.SelectedViewport); in UpdateDisplay()
/dports/games/stratagus/stratagus-3.2.0/src/stratagus/
H A Dmainloop.cpp109 vp = UI.SelectedViewport; in DoScrollArea()
208 UI.Minimap.DrawViewportArea(*UI.SelectedViewport); in UpdateDisplay()
H A Dselection.cpp115 UI.SelectedViewport->Unit = NULL; in UnSelectAll()
295 UI.SelectedViewport->Unit = NULL; in UnSelectUnit()
742 if (!unit.IsVisibleInViewport(*UI.SelectedViewport)) { in SelectUnitsInRectangle()
760 if (!unit.IsVisibleInViewport(*UI.SelectedViewport)) { in SelectUnitsInRectangle()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/sound/
H A Dsound.cpp422 unit.IX - UI.SelectedViewport->MapPos.x * Map.GetCurrentPixelTileSize().x) * 256 / in CalculateStereo()
423 ((UI.SelectedViewport->MapWidth - 1) * Map.GetCurrentPixelTileSize().x)) - 128; in CalculateStereo()
528 UI.SelectedViewport->MapPos.x * Map.GetCurrentPixelTileSize().x) * 256 / in PlayMissileSound()
529 ((UI.SelectedViewport->MapWidth - 1) * Map.GetCurrentPixelTileSize().x)) - 128; in PlayMissileSound()
/dports/games/stratagus/stratagus-3.2.0/src/include/
H A Dui.h460 CViewport *SelectedViewport; /// Current selected active viewport variable
/dports/games/stratagus/stratagus-3.2.0/src/game/
H A Dgame.cpp1053 if (!UI.SelectedViewport) { in CreateGame()
1054 UI.SelectedViewport = UI.Viewports; in CreateGame()
1057 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(ThisPlayer->StartPos)); in CreateGame()
/dports/games/stratagus/stratagus-3.2.0/src/video/
H A Dcursor.cpp144 const CViewport &vp = *UI.SelectedViewport; in DrawVisibleRectangleCursor()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/ui/
H A Dui.h476 CViewport *SelectedViewport; /// Current selected active viewport variable
/dports/games/stratagus/stratagus-3.2.0/src/map/
H A Dmap_draw.cpp501 if (this == UI.SelectedViewport) { in DrawBorder()
H A Dscript_map.cpp188 UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(pos)); in CclCenterMap()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/action/
H A Daction_trade.cpp229 UI.SelectedViewport->Center(unit.GetMapPixelPosCenter()); in Execute()
H A Daction_use.cpp224 UI.SelectedViewport->Center(unit.GetMapPixelPosCenter()); in Execute()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/game/
H A Dgame.cpp203 …UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(ThisPlayer->StartPos, UI.CurrentMapLay… in StartMap()
1858 if (!UI.SelectedViewport) { in CreateGame()
1859 UI.SelectedViewport = UI.Viewports; in CreateGame()
1866 …UI.SelectedViewport->Center(Map.TilePosToMapPixelPos_Center(ThisPlayer->StartPos, UI.CurrentMapLay… in CreateGame()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/video/
H A Dcursor.cpp194 const CViewport &vp = *UI.SelectedViewport; in DrawVisibleRectangleCursor()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/map/
H A Dmap_draw.cpp630 if (this == UI.SelectedViewport) { in DrawBorder()

12