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 MenuTextRight & item)19MenuTextRight* MenuTextRight::Add(const MenuTextRight& item) 20 { 21 MenuTextRight* pItem = new MenuTextRight(item); 22 item.window->menuItems.push_back(pItem); 23 return pItem; 24 } 25 26 // Draws the text Draw()27void MenuTextRight::Draw() 28 { 29 DrawTextRight(text.text, position, size, color); 30 } 31