mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r25858) -Fix [FS#5783]: Goto button in order window was not always lowered when it should (adf88)
This commit is contained in:
parent
7ed5f6edf9
commit
2609693fe8
@ -644,7 +644,6 @@ private:
|
|||||||
*/
|
*/
|
||||||
void OrderClick_Conditional()
|
void OrderClick_Conditional()
|
||||||
{
|
{
|
||||||
this->LowerWidget(WID_O_GOTO);
|
|
||||||
this->SetWidgetDirty(WID_O_GOTO);
|
this->SetWidgetDirty(WID_O_GOTO);
|
||||||
SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, HT_NONE, this);
|
SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, HT_NONE, this);
|
||||||
this->goto_type = OPOS_CONDITIONAL;
|
this->goto_type = OPOS_CONDITIONAL;
|
||||||
@ -655,7 +654,6 @@ private:
|
|||||||
*/
|
*/
|
||||||
void OrderClick_Share()
|
void OrderClick_Share()
|
||||||
{
|
{
|
||||||
this->LowerWidget(WID_O_GOTO);
|
|
||||||
this->SetWidgetDirty(WID_O_GOTO);
|
this->SetWidgetDirty(WID_O_GOTO);
|
||||||
SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, HT_VEHICLE, this);
|
SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, HT_VEHICLE, this);
|
||||||
this->goto_type = OPOS_SHARE;
|
this->goto_type = OPOS_SHARE;
|
||||||
@ -1111,7 +1109,11 @@ public:
|
|||||||
|
|
||||||
virtual void OnPaint()
|
virtual void OnPaint()
|
||||||
{
|
{
|
||||||
if (this->vehicle->owner != _local_company) this->selected_order = -1; // Disable selection any selected row at a competitor order window.
|
if (this->vehicle->owner != _local_company) {
|
||||||
|
this->selected_order = -1; // Disable selection any selected row at a competitor order window.
|
||||||
|
} else {
|
||||||
|
this->SetWidgetLoweredState(WID_O_GOTO, this->goto_type != OPOS_NONE);
|
||||||
|
}
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1501,7 +1503,6 @@ public:
|
|||||||
virtual void OnPlaceObjectAbort()
|
virtual void OnPlaceObjectAbort()
|
||||||
{
|
{
|
||||||
this->goto_type = OPOS_NONE;
|
this->goto_type = OPOS_NONE;
|
||||||
this->RaiseWidget(WID_O_GOTO);
|
|
||||||
this->SetWidgetDirty(WID_O_GOTO);
|
this->SetWidgetDirty(WID_O_GOTO);
|
||||||
|
|
||||||
/* Remove drag highlighting if it exists. */
|
/* Remove drag highlighting if it exists. */
|
||||||
|
Loading…
Reference in New Issue
Block a user