mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Compiled Linux version. The welcome screen doesn't display the icon images, and the buttons don't work. Data is found at *prefix*/Magic Set Editor/data and the images at *prefix*/Magic Set Editor/resource. On Ubuntu, *prefix* is /usr/local/share. Resource files are all the image files from resource. I haven't configured them, because I haven't made it past the welcome screen.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@188 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include "icon_menu.hpp"
|
||||
#include <gui/icon_menu.hpp>
|
||||
#include <gui/util.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : generateDisabledImage
|
||||
|
||||
@@ -57,12 +58,14 @@ void IconMenu::Append(int id, const String& resource, const String& text, const
|
||||
item->SetBitmaps(bitmap, bitmap);
|
||||
item->SetDisabledBitmap(disabledImage);
|
||||
wxMenu::Append(item);
|
||||
#else
|
||||
|
||||
// load bitmap
|
||||
#else
|
||||
|
||||
// load bitmap
|
||||
|
||||
Bitmap bitmap = load_resource_image(resource);
|
||||
// add menu
|
||||
wxMenuItem* item = new wxMenuItem(this, id, text, help, style, submenu);
|
||||
// add menu
|
||||
item->SetBitmap(bitmap);
|
||||
wxMenu::Append(item);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user