mirror of https://github.com/buggins/dlangui.git
Rename init to initialize for examples
This commit is contained in:
parent
54511f6305
commit
3d170edd8f
|
@ -96,9 +96,9 @@ class EditFrame : AppFrame {
|
|||
|
||||
MenuItem mainMenuItems;
|
||||
|
||||
override protected void init() {
|
||||
override protected void initialize() {
|
||||
_appName = "DMLEdit";
|
||||
super.init();
|
||||
super.initialize();
|
||||
updatePreview();
|
||||
}
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ class EditFrame : AppFrame {
|
|||
|
||||
MenuItem mainMenuItems;
|
||||
|
||||
override protected void init() {
|
||||
override protected void initialize() {
|
||||
_appName = "DlangUISpreadSheet";
|
||||
super.init();
|
||||
super.initialize();
|
||||
}
|
||||
|
||||
/// create main menu
|
||||
|
|
|
@ -264,7 +264,7 @@ class CupWidget : Widget {
|
|||
/// start new game
|
||||
void newGame() {
|
||||
setLevel(1);
|
||||
init(_cols, _rows);
|
||||
initialize(_cols, _rows);
|
||||
_cup.dropNextFigure();
|
||||
setCupState(CupState.NewFigure);
|
||||
if (window && _gameOverPopup) {
|
||||
|
@ -278,8 +278,8 @@ class CupWidget : Widget {
|
|||
}
|
||||
|
||||
/// init cup
|
||||
void init(int cols, int rows) {
|
||||
_cup.init(cols, rows);
|
||||
void initialize(int cols, int rows) {
|
||||
_cup.initialize(cols, rows);
|
||||
_cols = cols;
|
||||
_rows = rows;
|
||||
}
|
||||
|
|
|
@ -205,7 +205,7 @@ struct Cup {
|
|||
return _rows;
|
||||
}
|
||||
/// inits empty cup of specified size
|
||||
void init(int cols, int rows) {
|
||||
void initialize(int cols, int rows) {
|
||||
_cols = cols;
|
||||
_rows = rows;
|
||||
_cup = new int[_cols * _rows];
|
||||
|
|
Loading…
Reference in New Issue