作者:龙飞
有了按钮类,我们制作对话框就很轻松了。边写程序边说明吧。
bool
hand_dialog(
const
ScreenSurface
&
screen,
const
std::
string
&
dialog_text,
int
size)
{
const int CENTRE_X = (screen.point() -> w) / 2 ;
const int CENTRE_Y = (screen.point() -> h) / 2 ;
const int HALF_SUB_BUTTON_W = 64
{
const int CENTRE_X = (screen.point() -> w) / 2 ;
const int CENTRE_Y = (screen.point() -> h) / 2 ;
const int HALF_SUB_BUTTON_W = 64