速速上菜!

速速上菜!

KitchenLib (Beta)
正在显示第 71 - 80 项,共 87 项条目
< 1 ... 6  7  8  9 >
更新于:2023 年 2 月 15 日 下午 10:06

KitchenLib Beta v0.5.2bRC-7

KLMenu

- Save() is now automatically called when a profile is switched

更新于:2023 年 2 月 15 日 下午 9:55

KitchenLib Beta v0.5.2bRC-6

Release Notes - API Related

BaseMod

- OnUpdate() is no longer sealed.

KLMenu

- AddProfileSelector() now requires a PreferenceManager parameter.
- AddProfileSelector() When "Create" is selected, the default profile will also be selected.

更新于:2023 年 2 月 15 日 下午 9:34

KitchenLib Beta v0.5.2bRC-5

Release Notes - API Related

KLMenu

- Once new profile is created, it will be selected automatically.
- Preferences will not be saved while Created is selected.

更新于:2023 年 2 月 15 日 下午 9:17

KitchenLib Beta v0.5.2bRC-4

Release Notes - API Related

KLMenu

- AddProfileSelector, bool updateOnHightlight now defaults to true

更新于:2023 年 2 月 15 日 下午 9:11

KitchenLib Beta v0.5.2bRC-3

Release Notes - API Related

KLMenu

- AddProfileSelector now automatically assigns GlobalPreferences
- Added bool parameter to AddProfileSelector(string mod_id, Action<string> action, bool updateOnHighlight = false)

更新于:2023 年 2 月 15 日 上午 10:27

KitchenLib Beta v0.5.3bRC-2

Release Notes - API Related

Base Classes

- Added PreferenceDictionary<T1, T2>
- Added PreferenceList<T>

Utilities

GlobalPreferences

- Added string[] GetProfilesS(string mod_id)
- Added void AddProfile(string mod_id, string profile)
- Added void RemoveProfile(string mod_id, string profile)
- Added bool DoesProfileExist(string mod_id, string profile)
- Added string GetProfile(string mod_id)
- Added void SetProfile(string mod_id, string profile)

KLMenu

- Added AddProfileSelector(string mod_id, Action<string> action)

Preferences

- Fixed a bug causing mod folder to not generate

更新于:2023 年 2 月 15 日 上午 4:22

KitchenLib Beta v0.5.2bRC-1

Release Notes - API Related

Utilities

PreferenceUtils

- `PreferenceUtils` is now Obsolete.

PreferenceManager

- `Get<T>(string key, object value)` is now `Set<T>(string key, object value)`
- Added `SetProfile(string profile)`
- Moved each mod to store their preferences in their own sub-folder.

更新于:2023 年 2 月 14 日 上午 6:19

KitchenLib Beta v0.5.2b8-Pref

Release Notes - API Related

Utilities

PreferenceUtils

- `PreferenceUtils` is now Obsolete.

PreferenceManager

- Added `PreferenceManager(string MOD_ID)`
- Added `PreferenceBase PreferenceManager.RegisterPreference(PreferenceBase preference)`
- Added `PreferenceManager.Save()`
- Added `PreferenceManager.Load()`
- Added `PreferenceManager.Get<PreferenceBase>(string key)`
- Added `PreferenceManager.Set<PreferenceBase>(string key, object value)`

更新于:2023 年 2 月 13 日 下午 6:15

KitchenLib Beta v0.5.2b7

Release Notes - API Related

Utilities

PreferenceUtils

- Readded Save(string file) alongside new Save(string MOD_ID, string file) for backwards compatibility.

更新于:2023 年 2 月 13 日 下午 6:02

KitchenLib Beta v0.5.2b6

Release Notes - API Related

Utilities

PreferenceUtils

- `Save()` Now has a MOD_ID parameter. This is to allow for mods to save their own preferences without interfering with other mods.
- `Save(string MOD_ID, string file)`