4jcraft/Minecraft.Client/UI/SmallButton.cpp
MatthewBeshay dfb0e3b03e refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
2026-03-30 16:25:52 +11:00

21 lines
655 B
C++

#include "../Platform/stdafx.h"
#include "SmallButton.h"
SmallButton::SmallButton(int id, int x, int y, const std::wstring& msg)
: Button(id, x, y, 150, 20, msg) {
this->option = nullptr;
}
SmallButton::SmallButton(int id, int x, int y, int width, int height,
const std::wstring& msg)
: Button(id, x, y, width, height, msg) {
this->option = nullptr;
}
SmallButton::SmallButton(int id, int x, int y, const Options::Option* item,
const std::wstring& msg)
: Button(id, x, y, 150, 20, msg) {
this->option = item;
}
const Options::Option* SmallButton::getOption() { return option; }