Skip to content

Instantly share code, notes, and snippets.

@IntelOrca
Created August 13, 2014 12:56
Show Gist options
  • Save IntelOrca/a428a9a62c21820a6d1a to your computer and use it in GitHub Desktop.
Save IntelOrca/a428a9a62c21820a6d1a to your computer and use it in GitHub Desktop.
New window classes for OpenRCT2.
class TabWindow : Window {
public:
void AddTab(WindowTab tab);
}
class ParkInformationWindow : TabWindow {
public:
ParkInformationWindow()
{
this->allowMany = false;
}
override void OnCreate()
{
this->addTab(new WindowTab())
}
private:
class MainPage : TabPage {
public:
override void OnShow()
{
this->setMinimumSize(200, 300);
this->setSize(200, 300);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment