Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend 3den selectable date range from 1900 to 2050 #1155

Merged
merged 6 commits into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions addons/common/Cfg3DEN.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

class Cfg3DEN {
class Attributes {

Drofseh marked this conversation as resolved.
Show resolved Hide resolved
class Default;
class Title: Default {
class Controls;
};

class Date: Title {
class Controls: Controls {
class ValueYear : ctrlCombo {
Drofseh marked this conversation as resolved.
Show resolved Hide resolved
onLoad="_ctrlYear = _this select 0; for '_y' from 1900 to 2050 do { _lbadd = _ctrlYear lbadd str _y; _ctrlYear lbsetvalue [_lbadd,_y]; }; _ctrlYear lbsetcursel 53;";
Drofseh marked this conversation as resolved.
Show resolved Hide resolved
};
};
};

class Edit;
class EditMulti3: Edit {
class Controls;
Expand Down
2 changes: 2 additions & 0 deletions addons/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class CfgPatches {
};
};

class ctrlCombo;
Drofseh marked this conversation as resolved.
Show resolved Hide resolved

#include "Cfg3DEN.hpp"
#include "CfgEventHandlers.hpp"
#include "CfgFunctions.hpp"
Expand Down