module Apps::WadViewer

Overview

An app used for viewing wads

To use, call Apps::WadViewer.run(wad)

To use in the command line, call Apps::WadViewer.run_cli and use -w

Defined in:

apps/wad-viewer.cr
apps/wad-viewer/wad-viewer_main.cr

Constant Summary

DIRECTORIES_PANEL_ITEMS_HEIGHT = 20
DIRECTORIES_PANEL_ITEMS_SPACING = 0
DIRECTORIES_PANEL_STATUSBAR_TEXT_SIZE = 25
DIRECTORIES_PANEL_TEXT_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 66, g: 176, b: 245, a: 200))
DIRECTORIES_PANEL_TEXT_EDITED_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 11, g: 57, b: 156, a: 200))
DIRECTORIES_PANEL_TEXT_SELECTED_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 237, g: 36, b: 36, a: 200))
DIRECTORIES_PANEL_TEXT_SIZE = 14
LUMP_INFO_PANEL_TEXT_SIZE = 10
RESX = 800
RESY = 600
VERSION = "1.0.0"
WAD_SAVE_PANEL_HEADER_TEXT_SIZE = 16
WAD_SAVE_PANEL_TEXT_COMPLETE_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 13, g: 255, b: 53, a: 200))
WAD_SAVE_PANEL_TEXT_DEFAULT_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 23, g: 81, b: 103, a: 200))
WAD_SAVE_PANEL_TEXT_FAILED_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 255, g: 34, b: 0, a: 200))
WAD_SAVE_PANEL_TEXT_NOFILENAME_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 255, g: 0, b: 255, a: 200))
WAD_SAVE_PANEL_TEXT_SIZE = 10
WAD_SAVE_PANEL_TEXT_WAITING_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 0, g: 195, b: 255, a: 200))
WAD_SAVE_PANEL_TEXT_WORKING_COLOR = Raylib.color_to_int(Raylib::Color.new(r: 0, g: 255, b: 195, a: 200))
WINDOW_RESX = 1920
WINDOW_RESY = 1440

Class Method Summary

Class Method Detail

def self.remove_nulls(string : String) : String #

Removes all null bytes from a string


def self.run(input_file : String) #

Runs the wad viewer given a wad path


def self.run(wad : WAD) #

Runs the wad viewer given a wad


def self.run_cli #

Runs the wad viewer with wad defined in the command line -w Path/To/Wad -h (Shows the help)