Skip to content

Commit 65a158c

Browse files
committed
Fixes for Reforger 1.3.0.84 (#68)
* Signature of SCR_BaseEditorAttributeUIComponent::OnChange changed * Fix missing static keyword
1 parent 452e55e commit 65a158c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

addons/GME/Scripts/Game/GME/Helpers/GME_VehicleHelper.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
class GME_VehicleHelper
33
{
44
static const int PASSENGER_EJECT_DELAY_MS = 2500;
5-
const ref array<ECompartmentType> DEFAULT_CREW_COMPARTMENT_TYPES = {ECompartmentType.PILOT, ECompartmentType.TURRET};
6-
const ref array<ECompartmentType> DEFAULT_PASSENGER_COMPARTMENT_TYPES = {ECompartmentType.CARGO};
7-
const ref array<ECompartmentType> ALL_COMPARTMENT_TYPES = {ECompartmentType.PILOT, ECompartmentType.TURRET, ECompartmentType.CARGO};
5+
static const ref array<ECompartmentType> DEFAULT_CREW_COMPARTMENT_TYPES = {ECompartmentType.PILOT, ECompartmentType.TURRET};
6+
static const ref array<ECompartmentType> DEFAULT_PASSENGER_COMPARTMENT_TYPES = {ECompartmentType.CARGO};
7+
static const ref array<ECompartmentType> ALL_COMPARTMENT_TYPES = {ECompartmentType.PILOT, ECompartmentType.TURRET, ECompartmentType.CARGO};
88

99
//------------------------------------------------------------------------------------------------
1010
static SCR_AIGroup SpawnCrew(Vehicle vehicle, array<ECompartmentType> compartmentTypes = GME_VehicleHelper.DEFAULT_CREW_COMPARTMENT_TYPES)

addons/GME/Scripts/Game/GME/UI/Components/Attributes/GME_EditBoxEditorAttributeUIComponent.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ class GME_EditboxEditorAttributeUIComponent: SCR_BaseEditorAttributeUIComponent
4545
//------------------------------------------------------------------------------------------------
4646
protected void OnChangeEditbox(SCR_EditBoxComponent selectionBox, string value)
4747
{
48-
OnChange(null, 0, 0, false);
48+
OnChange(null, false);
4949
}
5050

5151
//------------------------------------------------------------------------------------------------
52-
override bool OnChange(Widget w, int x, int y, bool finished)
52+
override bool OnChange(Widget w, bool finished)
5353
{
5454
if (!m_EditBoxComponent)
5555
return false;
@@ -65,7 +65,7 @@ class GME_EditboxEditorAttributeUIComponent: SCR_BaseEditorAttributeUIComponent
6565
return false;
6666

6767
var.GME_SetString(newValue);
68-
super.OnChange(w, x, y, finished);
68+
super.OnChange(w, finished);
6969
return false;
7070
}
7171

addons/GME/Scripts/Game/GME/UI/Components/Attributes/GME_MultilineEditBoxEditorAttributeUIComponent.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ class GME_MultilineEditboxEditorAttributeUIComponent: SCR_BaseEditorAttributeUIC
4545
//------------------------------------------------------------------------------------------------
4646
protected void OnChangeEditbox(GME_MultilineEditBoxComponent selectionBox, string value)
4747
{
48-
OnChange(null, 0, 0, false);
48+
OnChange(null, false);
4949
}
5050

5151
//------------------------------------------------------------------------------------------------
52-
override bool OnChange(Widget w, int x, int y, bool finished)
52+
override bool OnChange(Widget w, bool finished)
5353
{
5454
if (!m_EditBoxComponent)
5555
return false;
@@ -65,7 +65,7 @@ class GME_MultilineEditboxEditorAttributeUIComponent: SCR_BaseEditorAttributeUIC
6565
return false;
6666

6767
var.GME_SetString(newValue);
68-
super.OnChange(w, x, y, finished);
68+
super.OnChange(w, finished);
6969
return false;
7070
}
7171

0 commit comments

Comments
 (0)