view LightClone/Source/GuiDialog.cpp @ 65:41980ff0607d

Added shader and textures for bot
author koryspansel <koryspansel@bendbroadband.com>
date Wed, 05 Oct 2011 12:55:46 -0700
parents d0ce73ced12e
children
line wrap: on
line source

/*
 * GuiDialog
 */

#include "GuiDialog.h"

/*
 * EventResult
 */
const char* GuiDialog::EventResult = "GuiDialog:EventResult";

/*
 * GuiDialog
 */
GuiDialog::GuiDialog() : GuiImage()
{
	ClearFlag(GuiElementFlag_Visible);
}

/*
 * Show
 */
ErrorCode GuiDialog::Show()
{
	return SetFlag(GuiElementFlag_Visible), Error_Success;
}

/*
 * Close
 */
void GuiDialog::Close(uint32 nResult)
{
	ClearFlag(GuiElementFlag_Visible);

	GuiResultArguments kArguments(this, nResult);
	Fire(GuiDialog::EventResult, kArguments);
}