Skip to content

Commit

Permalink
Fixed a .osu import tp problems
Browse files Browse the repository at this point in the history
Trying fixing #18
  • Loading branch information
NagaseIori committed Aug 13, 2022
1 parent e95a867 commit 4e4b7c1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
11 changes: 4 additions & 7 deletions objects/objmain/Draw_64.gml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ if(topBarTimeA > 0) {
if(topBarMouseInbound || topBarMousePressed)
_ntime = mouse_x / global.resolutionW * musicLength;

var _ele = scribble(format_time_string(nowTime) + " / "+format_time_string(_ntime))
.starting_format("fMono16", c_white)
.align(fa_center, fa_top)
.blend(c_white, topBarTimeA)
.gradient(themeColor, topBarTimeGradA);

_ele.draw(_nx, _ny);
draw_set_font(fMono16);
draw_set_color_alpha(merge_color(c_white, themeColor, topBarTimeGradA * 0.5), topBarTimeA);
draw_set_halign(fa_center); draw_set_valign(fa_top);
draw_text(_nx, _ny, format_time_string(nowTime) + " / "+format_time_string(_ntime))
}


Expand Down
2 changes: 1 addition & 1 deletion objects/objmain/objmain.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion objects/objmanager/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

global.configPath = program_directory + "config.json";

global.version = "v0.1.2.1"
global.version = "v0.2.0-dev"

global.resolutionW = 1920
global.resolutionH = 1080
Expand Down
2 changes: 1 addition & 1 deletion objects/objmanager/objmanager.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion options/windows/options_windows.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/scrEditor/scrEditor.gml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function timing_point_load_from_osz() {
break;
case "[TimingPoints]":
var _time = real(_grid[# 0, i]) + _delay_time;
var _mspb = real(_grid[# 1, i]);
var _mspb = string_letters(_grid[# 1, i]) != ""?-1:real(_grid[# 1, i]);
var _meter = real(_grid[# 2, i]);
if(_mspb > 0)
timing_point_add(_time, _mspb, _meter);
Expand Down

0 comments on commit 4e4b7c1

Please sign in to comment.