bool GetDialogTexturesFromStack(lua_State *plua_state, DCGUIDialog::TEXTURES &Textures)
{
bool bSuccess = false;
if (ResaveTableWithUpperStringKey(plua_state))
{
if (lua_istable(plua_state, -1))
{
bSuccess = true;
GetField(plua_state, g_strTexNameID[TEXNAME_TOPLEFT], Textures.Frame.strTopLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_TOPMIDDLE], Textures.Frame.strTopMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_TOPRIGHT], Textures.Frame.strTopRight);
GetField(plua_state, g_strTexNameID[TEXNAME_LEFT], Textures.Frame.strLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_MIDDLE], Textures.Frame.strMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_RIGHT], Textures.Frame.strRight);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMLEFT], Textures.Frame.strBottomLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMMIDDLE], Textures.Frame.strBottomMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMRIGHT], Textures.Frame.strBottomRight);
GetField(plua_state, g_strTexNameID[TEXNAME_TOPLEFTD], Textures.Frame.strTopLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_TOPMIDDLED], Textures.Frame.strTopMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_TOPRIGHTD], Textures.Frame.strTopRightD);
GetField(plua_state, g_strTexNameID[TEXNAME_LEFTD], Textures.Frame.strLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_MIDDLED], Textures.Frame.strMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_RIGHTD], Textures.Frame.strRightD);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMLEFTD], Textures.Frame.strBottomLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMMIDDLED], Textures.Frame.strBottomMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_BOTTOMRIGHTD], Textures.Frame.strBottomRightD);
//
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPLEFT], Textures.CloseButton.strTopLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPMIDDLE], Textures.CloseButton.strTopMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPRIGHT], Textures.CloseButton.strTopRight);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSELEFT], Textures.CloseButton.strLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEMIDDLE], Textures.CloseButton.strMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSERIGHT], Textures.CloseButton.strRight);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMLEFT], Textures.CloseButton.strBottomLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMMIDDLE], Textures.CloseButton.strBottomMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMRIGHT], Textures.CloseButton.strBottomRight);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPLEFT], Textures.MinimizeButton.strTopLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPMIDDLE], Textures.MinimizeButton.strTopMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPRIGHT], Textures.MinimizeButton.strTopRight);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZELEFT], Textures.MinimizeButton.strLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEMIDDLE], Textures.MinimizeButton.strMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZERIGHT], Textures.MinimizeButton.strRight);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMLEFT], Textures.MinimizeButton.strBottomLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMMIDDLE], Textures.MinimizeButton.strBottomMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMRIGHT], Textures.MinimizeButton.strBottomRight);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPLEFT], Textures.RestoreButton.strTopLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPMIDDLE], Textures.RestoreButton.strTopMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPRIGHT], Textures.RestoreButton.strTopRight);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORELEFT], Textures.RestoreButton.strLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREMIDDLE], Textures.RestoreButton.strMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORERIGHT], Textures.RestoreButton.strRight);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMLEFT], Textures.RestoreButton.strBottomLeft);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMMIDDLE], Textures.RestoreButton.strBottomMiddle);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMRIGHT], Textures.RestoreButton.strBottomRight);
//
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPLEFTO], Textures.CloseButton.strTopLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPMIDDLEO], Textures.CloseButton.strTopMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPRIGHTO], Textures.CloseButton.strTopRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSELEFTO], Textures.CloseButton.strLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEMIDDLEO], Textures.CloseButton.strMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSERIGHTO], Textures.CloseButton.strRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMLEFTO], Textures.CloseButton.strBottomLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMMIDDLEO], Textures.CloseButton.strBottomMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMRIGHTO], Textures.CloseButton.strBottomRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPLEFTO], Textures.MinimizeButton.strTopLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPMIDDLEO], Textures.MinimizeButton.strTopMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPRIGHTO], Textures.MinimizeButton.strTopRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZELEFTO], Textures.MinimizeButton.strLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEMIDDLEO], Textures.MinimizeButton.strMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZERIGHTO], Textures.MinimizeButton.strRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMLEFTO], Textures.MinimizeButton.strBottomLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMMIDDLEO], Textures.MinimizeButton.strBottomMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMRIGHTO], Textures.MinimizeButton.strBottomRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPLEFTO], Textures.RestoreButton.strTopLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPMIDDLEO], Textures.RestoreButton.strTopMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPRIGHTO], Textures.RestoreButton.strTopRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORELEFTO], Textures.RestoreButton.strLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREMIDDLEO], Textures.RestoreButton.strMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORERIGHTO], Textures.RestoreButton.strRightO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMLEFTO], Textures.RestoreButton.strBottomLeftO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMMIDDLEO], Textures.RestoreButton.strBottomMiddleO);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMRIGHTO], Textures.RestoreButton.strBottomRightO);
//
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPLEFTC], Textures.CloseButton.strTopLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPMIDDLEC], Textures.CloseButton.strTopMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPRIGHTC], Textures.CloseButton.strTopRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSELEFTC], Textures.CloseButton.strLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEMIDDLEC], Textures.CloseButton.strMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSERIGHTC], Textures.CloseButton.strRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMLEFTC], Textures.CloseButton.strBottomLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMMIDDLEC], Textures.CloseButton.strBottomMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMRIGHTC], Textures.CloseButton.strBottomRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPLEFTC], Textures.MinimizeButton.strTopLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPMIDDLEC], Textures.MinimizeButton.strTopMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPRIGHTC], Textures.MinimizeButton.strTopRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZELEFTC], Textures.MinimizeButton.strLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEMIDDLEC], Textures.MinimizeButton.strMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZERIGHTC], Textures.MinimizeButton.strRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMLEFTC], Textures.MinimizeButton.strBottomLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMMIDDLEC], Textures.MinimizeButton.strBottomMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZEBOTTOMRIGHTC], Textures.MinimizeButton.strBottomRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPLEFTC], Textures.RestoreButton.strTopLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPMIDDLEC], Textures.RestoreButton.strTopMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORETOPRIGHTC], Textures.RestoreButton.strTopRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORELEFTC], Textures.RestoreButton.strLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREMIDDLEC], Textures.RestoreButton.strMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTORERIGHTC], Textures.RestoreButton.strRightC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMLEFTC], Textures.RestoreButton.strBottomLeftC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMMIDDLEC], Textures.RestoreButton.strBottomMiddleC);
GetField(plua_state, g_strTexNameID[TEXNAME_RESTOREBOTTOMRIGHTC], Textures.RestoreButton.strBottomRightC);
//
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPLEFTD], Textures.CloseButton.strTopLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPMIDDLED], Textures.CloseButton.strTopMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSETOPRIGHTD], Textures.CloseButton.strTopRightD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSELEFTD], Textures.CloseButton.strLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEMIDDLED], Textures.CloseButton.strMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSERIGHTD], Textures.CloseButton.strRightD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMLEFTD], Textures.CloseButton.strBottomLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMMIDDLED], Textures.CloseButton.strBottomMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_CLOSEBOTTOMRIGHTD], Textures.CloseButton.strBottomRightD);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPLEFTD], Textures.MinimizeButton.strTopLeftD);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPMIDDLED], Textures.MinimizeButton.strTopMiddleD);
GetField(plua_state, g_strTexNameID[TEXNAME_MINIMIZETOPRIGHTD], Textures.MinimizeButton.strTopRightD);
댓글을 달아 주세요
저런..................................
난 32비트 윈도로 갈아타니
피파가 실행되네....
....
저런.. 64비트에서 피파가 실행이 안되다니 안타까운 노릇일세..