Skip to content

Commit

Permalink
v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhxiao committed Oct 22, 2023
1 parent 0208e22 commit 5bbaeb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ cmake-build-debug
.debug
build
.cache
logs
logs
!icon.rc
1 change: 1 addition & 0 deletions icon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON "BedrockMap.ico"
2 changes: 1 addition & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace {

// 软件基本信息
const std::string cfg::SOFTWARE_NAME = "BedrockMap";
const std::string cfg::SOFTWARE_VERSION = "v0.3.1";
const std::string cfg::SOFTWARE_VERSION = "v0.4.0";
// 不可配置的
const int cfg::GRID_WIDTH = 32;
// 配置文件下面是可配置的(都有默认值)
Expand Down
6 changes: 1 addition & 5 deletions src/renderfilterdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ setRegionBlockData(const MapFilter *f, bl::chunk *ch, int chx, int chz, int y, i
QColor(biome_color.r, biome_color.g, biome_color.b,
biome_color.a));
}

region->height_bake_image_.setPixelColor(X, Z, height_to_color(y, ch->get_pos().dim));
//setup tips
auto &tips = region->tips_info_[X][Z];
tips.block_name = info.name;
Expand All @@ -128,17 +128,13 @@ setRegionBlockData(const MapFilter *f, bl::chunk *ch, int chx, int chz, int y, i

//地形,群系渲染以及坐标数据设置
void MapFilter::renderImages(bl::chunk *ch, int rw, int rh, ChunkRegion *region) const {


if (!ch || !region) return;
auto [miny, maxy] = ch->get_pos().get_y_range(ch->get_version());
if (this->enable_layer_) {
//选层模式
if (this->layer > maxy || this->layer < miny)return;
for (int i = 0; i < 16; i++) {
for (int j = 0; j < 16; j++) {


auto b = ch->get_block_fast(i, this->layer, j);
if ((this->blocks_list_.count(b.name) == 0) == this->block_black_mode_) {
setRegionBlockData(this, ch, i, j, this->layer, rw, rh, region);
Expand Down

0 comments on commit 5bbaeb4

Please sign in to comment.