This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Mod.EventBusSubscriber(modid = "mod_custom_sky", bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) | |
public class MoonDimensionSky { | |
public static Field field_239208_a_ = ObfuscationReflectionHelper.findField(DimensionRenderInfo.class, "field_239208_a_"); | |
public static Field skyVBO = ObfuscationReflectionHelper.findField(WorldRenderer.class, "skyVBO"); | |
public static Field skyVertexFormat = ObfuscationReflectionHelper.findField(WorldRenderer.class, "skyVertexFormat"); | |
public static Field starVBO = ObfuscationReflectionHelper.findField(WorldRenderer.class, "starVBO"); | |
public static Field sky2VBO = ObfuscationReflectionHelper.findField(WorldRenderer.class, "sky2VBO"); | |
private static final ResourceLocation DIM_RENDER_INFO = new ResourceLocation("mod_custom_sky", "moon"); | |
private static final ResourceLocation SUN_TEXTURES = new ResourceLocation("mod_custom_sky", "textures/sun.png"); | |
private static final ResourceLocation MOON_PHASES_TEXTURES = new ResourceLocation("mod_custom_sky", "textures/earth.p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Charts | |
import SwiftData | |
import SwiftUI | |
struct MainCategoryChart: View { | |
@AppStorage("preferedCurrencyCode") private var preferedCurrencyCode = Currency.preview.first!.code | |
@Query private var subscriptions: [Subscription] | |
@Query private var categories: [Category] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftData | |
import SwiftUI | |
struct SubscriptionView: View { | |
@Environment(\.dismiss) var dismiss | |
@Environment(\.colorScheme) var colorScheme | |
@Environment(\.modelContext) private var modelContext | |
@Query private var subscriptions: [Subscription] | |
@Query private var categories: [Category] |