mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Use glLineWidth for wireframe rendering, use LoadingState for MapEditor
This commit is contained in:
@@ -2,7 +2,13 @@ class IMICFPS
|
||||
class LoadingState < Menu
|
||||
def setup
|
||||
window.needs_cursor = false
|
||||
@map_parser = MapParser.new(map_file: @options[:map_file])
|
||||
if @options[:map_file]
|
||||
@map_parser = MapParser.new(map_file: @options[:map_file])
|
||||
elsif @options[:map_parser]
|
||||
@map_parser = @options[:map_parser]
|
||||
else
|
||||
raise "Unable to load map, missing :map_file or :map_parser"
|
||||
end
|
||||
|
||||
title "I-MIC FPS"
|
||||
@subheading = Text.new("Loading Map: #{@map_parser.metadata.name}", y: 100, size: 50, alignment: :center)
|
||||
|
||||
Reference in New Issue
Block a user