|
|
|
|
@ -135,6 +135,8 @@ slParseHexGrid(slSceneDoc* sd, hexgrid& hg)
|
|
|
|
|
hg.fill_color = std::stoul(fill_color_str, nullptr, 16); |
|
|
|
|
std::string selected_fill_color_str = json_grid["selected_fill_color"].GetString(); |
|
|
|
|
hg.selected_fill_color = std::stoul(selected_fill_color_str, nullptr, 16); |
|
|
|
|
std::string hex_line_color_str = json_grid["hex_line_color"].GetString(); |
|
|
|
|
hg.hex_line_color = std::stoul(hex_line_color_str, nullptr, 16); |
|
|
|
|
std::string orientation_str = json_grid["hexlib_orientation"].GetString(); |
|
|
|
|
hg.hexlib_orientation = (orientation_str == "layout_flat") ? layout_flat : layout_pointy; |
|
|
|
|
Layout lo(hg.hexlib_orientation, Point(hg.hex_size, hg.hex_size), Point(hg.position.x, hg.position.y)); |
|
|
|
|
|