1 /*---------------------------------------------------------------------------*
2 
3   Copyright (C) Nintendo.  All rights reserved.
4 
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law.  They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10 
11  *---------------------------------------------------------------------------*/
12 
13 ////////////////////////////////////////////////////
14 //
15 // Text functions
16 //
17 ////////////////////////////////////////////////////
18 
Add(const MenuText & item)19 MenuText* MenuText::Add(const MenuText& item)
20 {
21     MenuText* pItem = new MenuText(item);
22     item.window->menuItems.push_back(pItem);
23     return pItem;
24 }
25 
26 	// Draws the text
Draw()27 void MenuText::Draw()
28 {
29 	DrawText(text.text, position, size, color);
30 }
31