Baseless/baseless/graphics.lua

252 lines
12 KiB
Lua
Raw Normal View History

2024-09-15 07:45:35 +00:00
return function(Baseless)
Baseless.Graphics = {}
Baseless.Graphics.Image = "__core__/graphics/empty.png"
Baseless.Graphics.Image32 = "__core__/graphics/too-far.png"
Baseless.Graphics.Icon = {icon = Baseless.Graphics.Image, icon_size = Baseless.Data.MinSpriteSize}
Baseless.Graphics.Sprite = {
filename = Baseless.Graphics.Image,
size = Baseless.Data.MinSpriteSize,
}
Baseless.Graphics.Sprite32 = {
filename = Baseless.Graphics.Image32,
size = Baseless.Data.MinSpriteSize,
}
Baseless.Graphics.Animation = Baseless.Graphics.Sprite
Baseless.Graphics.Sprite4Way = Baseless.Graphics.Sprite
Baseless.Graphics.Animation4Way = {north = Baseless.Graphics.Sprite4Way}
Baseless.Graphics.Sprite8Way = {sheets = {Baseless.Graphics.Sprite}}
Baseless.Graphics.Sprite8Way32 = {sheets = {Baseless.Graphics.Sprite32}}
Baseless.Graphics.SpriteSheet = Baseless.Graphics.Sprite
Baseless.Graphics.SpriteSheet32 = Baseless.Graphics.Sprite32
Baseless.Graphics.SpriteVariations = {sheet = Baseless.Graphics.SpriteSheet}
Baseless.Graphics.SpriteVariations32 = {sheet = Baseless.Graphics.SpriteSheet32}
Baseless.Graphics.RotatedSprite = table.merge_new(Baseless.Graphics.Sprite, {
direction_count = Baseless.Data.DirectionCount,
})
Baseless.Graphics.RotatedSprite32 = table.merge_new(Baseless.Graphics.Sprite32, {
direction_count = Baseless.Data.DirectionCount,
})
Baseless.Graphics.RotatedAnimation = Baseless.Graphics.RotatedSprite
Baseless.Graphics.RotatedAnimation32 = Baseless.Graphics.RotatedSprite32
Baseless.Graphics.RotatedAnimation4Way = {north = Baseless.Graphics.RotatedSprite}
Baseless.Graphics.AnimationSheet =
table.merge_new(Baseless.Graphics.Sprite, {variation_count = 1})
Baseless.Graphics.AnimationSheet32 = table.merge_new(Baseless.Graphics.Sprite32,
{variation_count = 1})
Baseless.Graphics.AnimationVariations = {sheet = Baseless.Graphics.AnimationSheet}
Baseless.Graphics.RailPieceLayers = {
metals = Baseless.Graphics.SpriteVariations32,
backplates = Baseless.Graphics.SpriteVariations32,
ties = Baseless.Graphics.SpriteVariations32,
stone_path = Baseless.Graphics.SpriteVariations32,
}
Baseless.Graphics.RailPictureSet = {
straight_rail_horizontal = Baseless.Graphics.RailPieceLayers,
straight_rail_vertical = Baseless.Graphics.RailPieceLayers,
straight_rail_diagonal_left_top = Baseless.Graphics.RailPieceLayers,
straight_rail_diagonal_right_top = Baseless.Graphics.RailPieceLayers,
straight_rail_diagonal_right_bottom = Baseless.Graphics.RailPieceLayers,
straight_rail_diagonal_left_bottom = Baseless.Graphics.RailPieceLayers,
curved_rail_vertical_left_top = Baseless.Graphics.RailPieceLayers,
curved_rail_vertical_right_top = Baseless.Graphics.RailPieceLayers,
curved_rail_vertical_right_bottom = Baseless.Graphics.RailPieceLayers,
curved_rail_vertical_left_bottom = Baseless.Graphics.RailPieceLayers,
curved_rail_horizontal_left_top = Baseless.Graphics.RailPieceLayers,
curved_rail_horizontal_right_top = Baseless.Graphics.RailPieceLayers,
curved_rail_horizontal_right_bottom = Baseless.Graphics.RailPieceLayers,
curved_rail_horizontal_left_bottom = Baseless.Graphics.RailPieceLayers,
rail_endings = Baseless.Graphics.Sprite8Way32,
}
Baseless.Graphics.BoilerStructure = {
north = Baseless.Graphics.Sprite,
south = Baseless.Graphics.Sprite,
east = Baseless.Graphics.Sprite,
west = Baseless.Graphics.Sprite,
}
Baseless.Graphics.CharacterRotatedAnimation = table.merge_new(
Baseless.Graphics.RotatedAnimation32,
{direction_count = 18})
Baseless.Graphics.CharacterArmorAnimation = {
idle = Baseless.Graphics.CharacterRotatedAnimation,
idle_with_gun = Baseless.Graphics.CharacterRotatedAnimation,
running = Baseless.Graphics.CharacterRotatedAnimation,
running_with_gun = Baseless.Graphics.CharacterRotatedAnimation,
mining_with_tool = Baseless.Graphics.CharacterRotatedAnimation,
}
Baseless.Graphics.OrientedCliffPrototype = {
collision_bounding_box = Baseless.Data.BoundingBox,
pictures = Baseless.Graphics.SpriteVariations,
fill_volume = Baseless.Data.uint32,
}
Baseless.Graphics.OrientedCliffPrototypeSet = {
west_to_east = Baseless.Graphics.OrientedCliffPrototype,
north_to_south = Baseless.Graphics.OrientedCliffPrototype,
east_to_west = Baseless.Graphics.OrientedCliffPrototype,
south_to_north = Baseless.Graphics.OrientedCliffPrototype,
west_to_north = Baseless.Graphics.OrientedCliffPrototype,
north_to_east = Baseless.Graphics.OrientedCliffPrototype,
east_to_south = Baseless.Graphics.OrientedCliffPrototype,
south_to_west = Baseless.Graphics.OrientedCliffPrototype,
west_to_south = Baseless.Graphics.OrientedCliffPrototype,
north_to_west = Baseless.Graphics.OrientedCliffPrototype,
east_to_north = Baseless.Graphics.OrientedCliffPrototype,
south_to_east = Baseless.Graphics.OrientedCliffPrototype,
west_to_none = Baseless.Graphics.OrientedCliffPrototype,
none_to_east = Baseless.Graphics.OrientedCliffPrototype,
north_to_none = Baseless.Graphics.OrientedCliffPrototype,
none_to_south = Baseless.Graphics.OrientedCliffPrototype,
east_to_none = Baseless.Graphics.OrientedCliffPrototype,
none_to_west = Baseless.Graphics.OrientedCliffPrototype,
south_to_none = Baseless.Graphics.OrientedCliffPrototype,
none_to_north = Baseless.Graphics.OrientedCliffPrototype,
}
Baseless.Data.ConnectableEntityGraphics = {
single = Baseless.Graphics.SpriteVariations,
straight_vertical = Baseless.Graphics.SpriteVariations,
straight_horizontal = Baseless.Graphics.SpriteVariations,
corner_right_down = Baseless.Graphics.SpriteVariations,
corner_left_down = Baseless.Graphics.SpriteVariations,
corner_right_up = Baseless.Graphics.SpriteVariations,
corner_left_up = Baseless.Graphics.SpriteVariations,
t_up = Baseless.Graphics.SpriteVariations,
t_right = Baseless.Graphics.SpriteVariations,
t_down = Baseless.Graphics.SpriteVariations,
t_left = Baseless.Graphics.SpriteVariations,
ending_up = Baseless.Graphics.SpriteVariations,
ending_right = Baseless.Graphics.SpriteVariations,
ending_down = Baseless.Graphics.SpriteVariations,
ending_left = Baseless.Graphics.SpriteVariations,
cross = Baseless.Graphics.SpriteVariations,
}
Baseless.Graphics.PipePictures = {
straight_vertical_single = Baseless.Graphics.Sprite,
straight_vertical = Baseless.Graphics.Sprite,
straight_vertical_window = Baseless.Graphics.Sprite,
straight_horizontal = Baseless.Graphics.Sprite,
straight_horizontal_window = Baseless.Graphics.Sprite,
corner_up_right = Baseless.Graphics.Sprite,
corner_up_left = Baseless.Graphics.Sprite,
corner_down_right = Baseless.Graphics.Sprite,
corner_down_left = Baseless.Graphics.Sprite,
t_up = Baseless.Graphics.Sprite,
t_down = Baseless.Graphics.Sprite,
t_right = Baseless.Graphics.Sprite,
t_left = Baseless.Graphics.Sprite,
cross = Baseless.Graphics.Sprite,
ending_up = Baseless.Graphics.Sprite,
ending_down = Baseless.Graphics.Sprite,
ending_right = Baseless.Graphics.Sprite,
ending_left = Baseless.Graphics.Sprite,
horizontal_window_background = Baseless.Graphics.Sprite,
vertical_window_background = Baseless.Graphics.Sprite,
fluid_background = Baseless.Graphics.Sprite,
low_temperature_flow = Baseless.Graphics.Sprite,
middle_temperature_flow = Baseless.Graphics.Sprite,
high_temperature_flow = Baseless.Graphics.Sprite,
gas_flow = Baseless.Graphics.Animation,
}
Baseless.Graphics.TransportBeltAnimationSet = {
animation_set = Baseless.Graphics.RotatedAnimation,
east_index = 1,
west_index = 1,
north_index = 1,
south_index = 1,
starting_south_index = 1,
ending_south_index = 1,
starting_west_index = 1,
ending_west_index = 1,
starting_north_index = 1,
ending_north_index = 1,
starting_east_index = 1,
ending_east_index = 1,
-- required by TransportBeltPrototype 'transport-belt'
east_to_north_index = 1,
north_to_east_index = 1,
west_to_north_index = 1,
north_to_west_index = 1,
south_to_east_index = 1,
east_to_south_index = 1,
south_to_west_index = 1,
west_to_south_index = 1,
}
Baseless.Graphics.LinkedBeltStructure = {
direction_in = Baseless.Graphics.Sprite4Way,
direction_out = Baseless.Graphics.Sprite4Way,
}
Baseless.Graphics.LoaderStructure = {
direction_in = Baseless.Graphics.Sprite4Way,
direction_out = Baseless.Graphics.Sprite4Way,
}
Baseless.Graphics.UndergroundBeltStructure = {
direction_in = Baseless.Graphics.Sprite4Way,
direction_out = Baseless.Graphics.Sprite4Way,
}
Baseless.Graphics.PipeToGroundPictures = {
down = Baseless.Graphics.Sprite,
up = Baseless.Graphics.Sprite,
left = Baseless.Graphics.Sprite,
right = Baseless.Graphics.Sprite,
}
Baseless.Graphics.SpiderLegGraphicsSet = {}
Baseless.Graphics.SpiderVehicleGraphicsSet = {}
Baseless.Graphics.StorageTankPictures = {
picture = Baseless.Graphics.Sprite4Way,
window_background = Baseless.Graphics.Sprite,
fluid_background = Baseless.Graphics.Sprite,
flow_sprite = Baseless.Graphics.Sprite,
gas_flow = Baseless.Graphics.Animation,
}
Baseless.Graphics.TransportBeltAnimationVariations = {
sheet = table.merge_new(Baseless.Graphics.AnimationSheet32, {variation_count = 7}),
}
Baseless.Graphics.TransportBeltConnectorFrame = {
frame_main = Baseless.Graphics.TransportBeltAnimationVariations,
frame_shadow = Baseless.Graphics.TransportBeltAnimationVariations,
frame_main_scanner = Baseless.Graphics.Animation,
frame_main_scanner_movement_speed = Baseless.Data.float,
frame_main_scanner_horizontal_start_shift = Baseless.Data.Vector,
frame_main_scanner_horizontal_end_shift = Baseless.Data.Vector,
frame_main_scanner_horizontal_y_scale = Baseless.Data.float,
frame_main_scanner_horizontal_rotation = Baseless.Data.RealOrientation,
frame_main_scanner_vertical_start_shift = Baseless.Data.Vector,
frame_main_scanner_vertical_end_shift = Baseless.Data.Vector,
frame_main_scanner_vertical_y_scale = Baseless.Data.float,
frame_main_scanner_vertical_rotation = Baseless.Data.RealOrientation,
frame_main_scanner_cross_horizontal_start_shift = Baseless.Data.Vector,
frame_main_scanner_cross_horizontal_end_shift = Baseless.Data.Vector,
frame_main_scanner_cross_horizontal_y_scale = Baseless.Data.float,
frame_main_scanner_cross_horizontal_rotation = Baseless.Data.RealOrientation,
frame_main_scanner_cross_vertical_start_shift = Baseless.Data.Vector,
frame_main_scanner_cross_vertical_end_shift = Baseless.Data.Vector,
frame_main_scanner_cross_vertical_y_scale = Baseless.Data.float,
frame_main_scanner_cross_vertical_rotation = Baseless.Data.RealOrientation,
frame_main_scanner_nw_ne = Baseless.Graphics.Animation,
frame_main_scanner_sw_se = Baseless.Graphics.Animation,
}
Baseless.Graphics.WallPictures = {
single = Baseless.Graphics.SpriteVariations,
straight_vertical = Baseless.Graphics.SpriteVariations,
straight_horizontal = Baseless.Graphics.SpriteVariations,
corner_right_down = Baseless.Graphics.SpriteVariations,
corner_left_down = Baseless.Graphics.SpriteVariations,
t_up = Baseless.Graphics.SpriteVariations,
ending_right = Baseless.Graphics.SpriteVariations,
ending_left = Baseless.Graphics.SpriteVariations,
}
Baseless.Graphics.TileTransitionSprite = {
count = 1,
picture = Baseless.Graphics.Image32,
size = Baseless.Data.MinSpriteSize,
}
Baseless.Graphics.Transitions = {
main = {Baseless.Graphics.TileTransitionSprite},
empty_transitions = true,
}
end