Skip to content

Commit

Permalink
Added more textures
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdam committed Sep 13, 2021
1 parent cb2d060 commit 893fd7a
Show file tree
Hide file tree
Showing 44 changed files with 242 additions and 98 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,39 @@ Custom Emblems Addon for Railcraft Mod

Support for custom emblems for decorative purposes.

You can put emblems into frames, on railcraft locomotives or combine with metal posts of various colors to form simple signs.

Screenshot
----------

![Screenshot](images/example_screenshot.png?raw=true)
![Screenshot](images/example_screenshot.jpg?raw=true)

Recipes
-------

Custom Engraving Bench

![Custom Engraving Bench Recipe](images/custom_engraving_bench_recipe.png?raw=true)

Metal Post sign with plate

![Metal Post Plate Recipe](images/metal_post_plate_recipe.png?raw=true)

Metal Post sign with no plate

![Metal Post Sign Recipe](images/metal_post_sign_recipe.png?raw=true)

Usage
-----

You can make your own emblems by editing mod file. Jar mod file is actually zip - you can rename it for editing if your archive program doesn't recognize it.

Navigate to: assets/railcraft_cemblem/textures/emblems/

Directory contains texture images used for custom emblems. You can add your own.

custom.properties is a text file containing list of custom emblems with unique code, name to display and image to use.

Building
--------

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version = '1.7.10-0.1.0'
group = "mods.railcraft_ender"
description = 'Railcraft Ender Signals Addon'
group = "mods.railcraft_cemblem"
description = 'Railcraft Custom Emblems Addon'

buildscript {
repositories {
Expand Down
Binary file added images/custom_engraving_bench_recipe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/example_screenshot.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/metal_post_plate_recipe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/metal_post_sign_recipe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
package mods.railcraft_cemblem.common.emblems;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.List;
import mods.railcraft.client.emblems.Emblem;
import mods.railcraft.client.emblems.EmblemToolsClient;
import mods.railcraft.common.core.RailcraftConfig;
import mods.railcraft.common.emblems.ItemEmblemBase;
import mods.railcraft.common.items.ItemRailcraft;
import mods.railcraft.common.plugins.forge.RailcraftRegistry;
import mods.railcraft.common.util.inventory.InvTools;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.util.EnumChatFormatting;

public class CustomItemEmblem extends ItemEmblemBase {
public class CustomItemEmblem extends ItemRailcraft {

private static final String TAG = "railcraft_cemblem.custom_emblem";
public static CustomItemEmblem item;
Expand All @@ -29,6 +37,19 @@ public static ItemStack getEmblem(String identifier) {
return stack;
}

@SideOnly(value=Side.CLIENT)
public void func_77624_a(ItemStack stack, EntityPlayer player, List info, boolean adv) {
if (!stack.hasTagCompound()) return;
NBTTagCompound nbt = stack.getTagCompound();
NBTTagString emblemIdent = (NBTTagString)nbt.getTag("emblem");
if (emblemIdent == null) {
return;
}
Emblem emblem = EmblemToolsClient.packageManager.getEmblem(emblemIdent.func_150285_a_());
if (emblem == null) return;
info.add(EnumChatFormatting.GRAY + emblem.displayName);
}

public void func_94581_a(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("railcraft_cemblem:custom_emblem");
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,97 +1,196 @@
# Custom emblems
emblem0_code=cd_logo
emblem0_name=CD Logo
emblem0_image=cd_logo.png
emblem1_code=crossing1
emblem1_name=Crossing
emblem1_image=crossing1.png
emblem2_code=crossing2
emblem2_name=Barriers Crossing
emblem2_image=crossing2.png
emblem3_code=end_rail1
emblem3_name=End Rail
emblem3_image=end_rail1.png
emblem4_code=end_rail2
emblem4_name=End Rail 2
emblem4_image=end_rail2.png
emblem5_code=multi_rail
emblem5_name=Multi Rail Crossing
emblem5_image=multi_rail.png
emblem6_code=no_entry
emblem6_name=No Entry
emblem6_image=no_entry.png
emblem7_code=no_smoking
emblem7_name=No Smoking
emblem7_image=no_smoking.png
emblem8_code=single_rail
emblem8_name=Single Rail Crossing
emblem8_image=single_rail.png
emblem9_code=stop
emblem9_name=Stop
emblem9_image=stop.png
emblem10_code=train1
emblem10_name=Train Sign
emblem10_image=train1.png
emblem11_code=tram
emblem11_name=Tram Sign
emblem11_image=tram.png
emblem12_code=waiting_room
emblem12_name=Waiting Room
emblem12_image=waiting_room.png
emblem13_code=big_station_ahead
emblem13_name=Station Ahead Big
emblem13_image=big_station_ahead.png
emblem14_code=exit
emblem14_name=Exit
emblem14_image=exit.png
emblem0_code=crossing1
emblem0_name=Crossing
emblem0_image=crossing1.png
emblem1_code=crossing2
emblem1_name=Barrier Crossing
emblem1_image=crossing2.png
emblem2_code=crossing3
emblem2_name=Crossing 3
emblem2_image=crossing3.png
emblem3_code=crossing4
emblem3_name=Crossing 4
emblem3_image=crossing4.png
emblem4_code=crossing5
emblem4_name=Crossing 5
emblem4_image=crossing5.png
emblem5_code=crossing6
emblem5_name=Crossing 6
emblem5_image=crossing6.png
emblem6_code=single_rail
emblem6_name=Single Rail Crossing
emblem6_image=single_rail.png
emblem7_code=multi_rail
emblem7_name=Multi Rail Crossing
emblem7_image=multi_rail.png
emblem8_code=crossbuck1
emblem8_name=Crossing Buck 1
emblem8_image=crossbuck1.png
emblem9_code=crossbuck2
emblem9_name=Crossing Buck 2
emblem9_image=crossbuck2.png
emblem10_code=crossbuck3
emblem10_name=Crossing Buck 3
emblem10_image=crossbuck3.png
emblem11_code=crossing_lights
emblem11_name=Crossing Lights
emblem11_image=crossing_lights.png
emblem12_code=crossing_azd
emblem12_name=Crossing Lights AZD
emblem12_image=crossing_azd.png
emblem13_code=crossing_uk
emblem13_name=Crossing Lights UK
emblem13_image=crossing_uk.png
emblem14_code=stop
emblem14_name=Stop
emblem14_image=stop.png
emblem15_code=electric
emblem15_name=Electric
emblem15_image=electric.png
emblem16_code=traffic_lights
emblem16_name=Traffic Lights
emblem16_image=trafficlights.png
emblem17_code=traffic_lights2
emblem17_name=Traffic Lights Oval
emblem17_image=trafficlights2.png
emblem18_code=metro_arrow
emblem18_name=Metro Arrow
emblem18_image=metro_arrow.png
emblem19_code=metro_red
emblem19_name=Metro Red
emblem19_image=metro_red.png
emblem20_code=metro_praha
emblem20_name=Metro Praha
emblem20_image=metro_praha.png
emblem21_code=steam
emblem21_name=Steam
emblem21_image=steam.png
emblem22_code=track_straight
emblem22_name=Track Straight
emblem22_image=track_straight.png
emblem23_code=track_incline
emblem23_name=Track Incline
emblem23_image=track_incline.png
emblem24_code=track_decline
emblem24_name=Track Decline
emblem24_image=track_decline.png
emblem25_code=station_ahead
emblem25_name=Station Ahead
emblem25_image=station_ahead.png
emblem26_code=factory
emblem26_name=Factory
emblem26_image=factory.png
emblem27_code=two_lights
emblem27_name=Two Lights
emblem27_image=twolights.png
emblem28_code=youtube
emblem28_name=Youtube Logo
emblem28_image=youtube.png
emblem29_code=railroad_crossing
emblem29_name=Railroad Crossing
emblem29_image=railroad_crossing.png
emblem30_code=crossing_lights
emblem30_name=Crossing Lights
emblem30_image=crossing_lights.png
emblem31_code=crossing_azd
emblem31_name=Crossing Lights AZD
emblem31_image=crossing_azd.png
emblem16_code=speed40
emblem16_name=Speed Limit 40
emblem16_image=speed40.png
emblem17_code=speed60
emblem17_name=Speed Limit 60
emblem17_image=speed60.png
emblem18_code=speed80
emblem18_name=Speed Limit 80
emblem18_image=speed80.png
emblem19_code=speed100
emblem19_name=Speed Limit 100
emblem19_image=speed100.png
emblem20_code=speed140
emblem20_name=Speed Limit 140
emblem20_image=speed140.png
emblem21_code=speed180
emblem21_name=Speed Limit 180
emblem21_image=speed180.png
emblem22_code=speed240
emblem22_name=Speed Limit 240
emblem22_image=speed240.png
emblem23_code=speed300
emblem23_name=Speed Limit 300
emblem23_image=speed300.png
emblem24_code=navest1_h
emblem24_name=Navest 1 H
emblem24_image=navest1_h.png
emblem25_code=navest1_d
emblem25_name=Navest 1 D
emblem25_image=navest1_d.png
emblem26_code=navest2_h
emblem26_name=Navest 2 H
emblem26_image=navest2_h.png
emblem27_code=navest2_d
emblem27_name=Navest 2 D
emblem27_image=navest2_d.png
emblem28_code=navest3_h
emblem28_name=Navest 3 H
emblem28_image=navest3_h.png
emblem29_code=navest3_d
emblem29_name=Navest 3 D
emblem29_image=navest3_d.png
emblem30_code=predvest
emblem30_name=Predvest
emblem30_image=predvest.png
emblem31_code=end_rail1
emblem31_name=End Rail
emblem31_image=end_rail1.png
emblem32_code=end_rail2
emblem32_name=End Rail 2
emblem32_image=end_rail2.png
emblem33_code=station_ahead
emblem33_name=Station Ahead
emblem33_image=station_ahead.png
emblem34_code=big_station_ahead
emblem34_name=Station Ahead Big
emblem34_image=big_station_ahead.png
emblem35_code=predvest_r
emblem35_name=Predvest R
emblem35_image=predvest_r.png
emblem36_code=predvest_v
emblem36_name=Predvest V
emblem36_image=predvest_v.png
emblem37_code=predvest_x
emblem37_name=Predvest X
emblem37_image=predvest_x.png
emblem38_code=pracovni_misto
emblem38_name=Work on Track
emblem38_image=pracovni_misto.png
emblem39_code=track_straight
emblem39_name=Track Straight
emblem39_image=track_straight.png
emblem40_code=track_incline
emblem40_name=Track Incline
emblem40_image=track_incline.png
emblem41_code=track_decline
emblem41_name=Track Decline
emblem41_image=track_decline.png
emblem42_code=train1
emblem42_name=Train Sign
emblem42_image=train1.png
emblem43_code=no_entry
emblem43_name=No Entry
emblem43_image=no_entry.png
emblem44_code=no_smoking
emblem44_name=No Smoking
emblem44_image=no_smoking.png
emblem45_code=waiting_room
emblem45_name=Waiting Room
emblem45_image=waiting_room.png
emblem46_code=tickets
emblem46_name=Tickets
emblem46_image=tickets.png
emblem47_code=restricted
emblem47_name=Restricted
emblem47_image=restricted.png
emblem48_code=information
emblem48_name=Information
emblem48_image=information.png
emblem49_code=cashiers
emblem49_name=Cashiers
emblem49_image=cashiers.png
emblem50_code=stairs
emblem50_name=Stairs
emblem50_image=stairs.png
emblem51_code=exit
emblem51_name=Exit
emblem51_image=exit.png
emblem52_code=traffic_lights
emblem52_name=Traffic Lights
emblem52_image=trafficlights.png
emblem53_code=traffic_lights2
emblem53_name=Traffic Lights Oval
emblem53_image=trafficlights2.png
emblem54_code=two_lights
emblem54_name=Two Lights
emblem54_image=twolights.png
emblem55_code=tram
emblem55_name=Tram Sign
emblem55_image=tram.png
emblem56_code=factory
emblem56_name=Factory
emblem56_image=factory.png
emblem57_code=exclamation1
emblem57_name=Exclamation Sign
emblem57_image=exclamation1.png
emblem58_code=dodatek1
emblem58_name=Dodatek 1
emblem58_image=dodatek1.png
emblem59_code=metro_arrow
emblem59_name=Metro Arrow
emblem59_image=metro_arrow.png
emblem60_code=metro_red
emblem60_name=Metro Red
emblem60_image=metro_red.png
emblem61_code=metro_praha
emblem61_name=Metro Praha
emblem61_image=metro_praha.png
emblem62_code=cd_logo
emblem62_name=CD Logo
emblem62_image=cd_logo.png
emblem63_code=youtube
emblem63_name=Youtube Logo
emblem63_image=youtube.png
emblem64_code=steam
emblem64_name=Steam
emblem64_image=steam.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 893fd7a

Please sign in to comment.