Add dialog to the scenario editor to let it know what type of graphics are in the custom sheets

- If you do this, it adds the graphics to all relevant select graphic dialogs, at the end, allowing you to choose custom graphics without having to remember the number schemes
This commit is contained in:
2015-01-18 12:32:47 -05:00
parent 181227f79d
commit 967438ecec
19 changed files with 563 additions and 138 deletions

View File

@@ -502,7 +502,7 @@ std::string get_str(std::string list, short j){
return strings[j - 1];
}
m_pic_index_t m_pic_index[] = {
extern const std::vector<m_pic_index_t> m_pic_index = {
{1, 1, 1},
{2, 1, 1},
{3, 1, 1},
@@ -702,27 +702,6 @@ m_pic_index_t m_pic_index[] = {
{203, 1, 1},
//180
{204, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
//190
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
{0, 1, 1},
//200
};
// TODO: Put these classes in a header?

View File

@@ -11,6 +11,7 @@
#include <string>
#include <memory>
#include <vector>
#include <functional>
#include <boost/filesystem/path.hpp>
#include <SFML/Graphics.hpp>
@@ -138,7 +139,7 @@ short can_see(location p1,location p2,std::function<short(short,short)> get_obsc
std::string get_str(std::string list, short j);
#ifndef GRAPHTOOL_CPP
extern m_pic_index_t m_pic_index[200];
extern const std::vector<m_pic_index_t> m_pic_index;
extern tessel_ref_t bg[];
#endif