Merge pull request #4734 from ItsSelis/tgui-bellyexport

HTML Export of Bellies
This commit is contained in:
Nadyr
2022-08-28 18:21:53 -04:00
committed by GitHub
7 changed files with 1210 additions and 111 deletions

View File

@@ -1086,6 +1086,24 @@
set category = "Preferences"
set desc = "Print out your vorebelly messages into chat for copypasting."
//CHOMPEdit - "Belly HTML Export Earlyport"
var/result = tgui_alert(src, "Would you rather open the export panel?", "Selected Belly Export", list("Open Panel", "Print to Chat"))
if(result == "Open Panel")
var/mob/living/user = usr
if(!user)
to_chat(usr,"<span class='notice'>Mob undefined: [user]</span>")
return FALSE
var/datum/vore_look/export_panel/exportPanel
if(!exportPanel)
exportPanel = new(usr)
if(!exportPanel)
to_chat(user,"<span class='notice'>Export panel undefined: [exportPanel]</span>")
return
exportPanel.tgui_interact(user)
else
for(var/belly in vore_organs)
if(isbelly(belly))
var/obj/belly/B = belly
@@ -1093,7 +1111,6 @@
to_chat(src, "<span class='notice'><b>Belly desc:</b> [B.desc]</span>")
to_chat(src, "<span class='notice'><b>Belly absorbed desc:</b> [B.absorbed_desc]</span>")
to_chat(src, "<span class='notice'><b>Vore verb:</b> [B.vore_verb]</span>")
to_chat(src, "<span class='notice'><b>Release verb:</b> [B.release_verb]</span>")
to_chat(src, "<span class='notice'><b>Struggle messages (outside):</b></span>")
for(var/msg in B.struggle_messages_outside)
to_chat(src, "<span class='notice'>[msg]</span>")
@@ -1134,6 +1151,7 @@
to_chat(src, "<span class='notice'><b>[EL]:</b></span>")
for(var/msg in B.emote_lists[EL])
to_chat(src, "<span class='notice'>[msg]</span>")
//CHOMPEdit End
/**
* Small helper component to manage the vore panel HUD icon

View File

@@ -441,6 +441,25 @@
to_chat(usr,"<span class='notice'>Chomp-specific preferences applied from active slot!</span>")
unsaved_changes = FALSE
return TRUE
//CHOMPEdit - "Belly HTML Export Earlyport"
if("exportpanel")
var/mob/living/user = usr
if(!user)
to_chat(usr,"<span class='notice'>Mob undefined: [user]</span>")
return FALSE
var/datum/vore_look/export_panel/exportPanel
if(!exportPanel)
exportPanel = new(usr)
if(!exportPanel)
to_chat(user,"<span class='notice'>Export panel undefined: [exportPanel]</span>")
return FALSE
exportPanel.open_export_panel(user)
return TRUE
//CHOMPEdit End
if("setflavor")
var/new_flavor = html_encode(tgui_input_text(usr,"What your character tastes like (400ch limit). This text will be printed to the pred after 'X tastes of...' so just put something like 'strawberries and cream':","Character Flavor",host.vore_taste))
if(!new_flavor)

View File

@@ -0,0 +1,264 @@
//
// Belly Export Panel
//
/datum/vore_look/export_panel/proc/open_export_panel(mob/user)
tgui_interact(user)
/datum/vore_look/export_panel/tgui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "VorePanelExport", "Vore Export Panel")
ui.open()
ui.set_autoupdate(FALSE)
/datum/vore_look/export_panel/tgui_fallback(payload)
if(..())
return TRUE
//var/mob/living/host = usr
//host.vorebelly_printout(TRUE)
/datum/vore_look/export_panel/tgui_act(action, params)
if(..())
return TRUE
/datum/vore_look/export_panel/tgui_data(mob/user)
var/list/data = list()
var/mob/living/host = user
data["db_version"] = "0.1"
data["db_repo"] = "chompstation"
data["mob_name"] = host.real_name
for(var/belly in host.vore_organs)
if(isbelly(belly))
var/obj/belly/B = belly
var/belly_data = list()
// General Information
belly_data["name"] = B.name
belly_data["desc"] = B.desc
belly_data["absorbed_desc"] = B.absorbed_desc
belly_data["vore_verb"] = B.vore_verb
belly_data["release_verb"] = B.release_verb
// Controls
belly_data["mode"] = B.digest_mode
var/list/addons = list()
for(var/flag_name in B.mode_flag_list)
if(B.mode_flags & B.mode_flag_list[flag_name])
addons.Add(flag_name)
belly_data["addons"] = addons
belly_data["item_mode"] = B.item_digest_mode
// Messages
belly_data["struggle_messages_outside"] = list()
for(var/msg in B.struggle_messages_outside)
belly_data["struggle_messages_outside"] += msg
belly_data["struggle_messages_inside"] = list()
for(var/msg in B.struggle_messages_inside)
belly_data["struggle_messages_inside"] += msg
belly_data["absorbed_struggle_messages_outside"] = list()
for(var/msg in B.absorbed_struggle_messages_outside)
belly_data["absorbed_struggle_messages_outside"] += msg
belly_data["absorbed_struggle_messages_inside"] = list()
for(var/msg in B.absorbed_struggle_messages_inside)
belly_data["absorbed_struggle_messages_inside"] += msg
belly_data["digest_messages_owner"] = list()
for(var/msg in B.digest_messages_owner)
belly_data["digest_messages_owner"] += msg
belly_data["digest_messages_prey"] = list()
for(var/msg in B.digest_messages_prey)
belly_data["digest_messages_prey"] += msg
belly_data["absorb_messages_owner"] = list()
for(var/msg in B.absorb_messages_owner)
belly_data["absorb_messages_owner"] += msg
belly_data["absorb_messages_prey"] = list()
for(var/msg in B.absorb_messages_prey)
belly_data["absorb_messages_prey"] += msg
belly_data["unabsorb_messages_owner"] = list()
for(var/msg in B.unabsorb_messages_owner)
belly_data["unabsorb_messages_owner"] += msg
belly_data["unabsorb_messages_prey"] = list()
for(var/msg in B.unabsorb_messages_prey)
belly_data["unabsorb_messages_prey"] += msg
belly_data["examine_messages"] = list()
for(var/msg in B.examine_messages)
belly_data["examine_messages"] += msg
belly_data["examine_messages_absorbed"] = list()
for(var/msg in B.examine_messages_absorbed)
belly_data["examine_messages_absorbed"] += msg
//belly_data["emote_list"] = list()
//for(var/EL in B.emote_lists)
// for(var/msg in B.emote_lists[EL])
// msg_list += msg
//
// belly_data["emote_lists"] += list(EL, msg_list)
// I will use this first before the code above gets fixed
belly_data["emotes_digest"] = list()
for(var/msg in B.emote_lists[DM_DIGEST])
belly_data["emotes_digest"] += msg
belly_data["emotes_hold"] = list()
for(var/msg in B.emote_lists[DM_HOLD])
belly_data["emotes_hold"] += msg
belly_data["emotes_holdabsorbed"] = list()
for(var/msg in B.emote_lists[DM_HOLD_ABSORBED])
belly_data["emotes_holdabsorbed"] += msg
belly_data["emotes_absorb"] = list()
for(var/msg in B.emote_lists[DM_ABSORB])
belly_data["emotes_absorb"] += msg
belly_data["emotes_heal"] = list()
for(var/msg in B.emote_lists[DM_HEAL])
belly_data["emotes_heal"] += msg
belly_data["emotes_drain"] = list()
for(var/msg in B.emote_lists[DM_DRAIN])
belly_data["emotes_drain"] += msg
belly_data["emotes_steal"] = list()
for(var/msg in B.emote_lists[DM_SIZE_STEAL])
belly_data["emotes_steal"] += msg
belly_data["emotes_egg"] = list()
for(var/msg in B.emote_lists[DM_EGG])
belly_data["emotes_egg"] += msg
belly_data["emotes_shrink"] = list()
for(var/msg in B.emote_lists[DM_SHRINK])
belly_data["emotes_shrink"] += msg
belly_data["emotes_grow"] = list()
for(var/msg in B.emote_lists[DM_GROW])
belly_data["emotes_grow"] += msg
belly_data["emotes_unabsorb"] = list()
for(var/msg in B.emote_lists[DM_UNABSORB])
belly_data["emotes_unabsorb"] += msg
// Options
belly_data["digest_brute"] = B.digest_brute
belly_data["digest_burn"] = B.digest_burn
belly_data["digest_oxy"] = B.digest_oxy
belly_data["can_taste"] = B.can_taste
belly_data["contaminates"] = B.contaminates
belly_data["contamination_flavor"] = B.contamination_flavor
belly_data["contamination_color"] = B.contamination_color
belly_data["nutrition_percent"] = B.nutrition_percent
belly_data["bulge_size"] = B.bulge_size
belly_data["display_absorbed_examine"] = B.display_absorbed_examine
belly_data["save_digest_mode"] = B.save_digest_mode
belly_data["emote_active"] = B.emote_active
belly_data["emote_time"] = B.emote_time
belly_data["shrink_grow_size"] = B.shrink_grow_size
belly_data["vorespawn_blacklist"] = B.vorespawn_blacklist
belly_data["egg_type"] = B.egg_type
belly_data["selective_preference"] = B.selective_preference
// Sounds
belly_data["is_wet"] = B.is_wet
belly_data["wet_loop"] = B.wet_loop
belly_data["fancy_vore"] = B.fancy_vore
belly_data["vore_sound"] = B.vore_sound
belly_data["release_sound"] = B.release_sound
// Visuals
belly_data["affects_vore_sprites"] = B.affects_vore_sprites
belly_data["count_absorbed_prey_for_sprite"] = B.count_absorbed_prey_for_sprite
belly_data["resist_triggers_animation"] = B.resist_triggers_animation
belly_data["size_factor_for_sprite"] = B.size_factor_for_sprite
belly_data["belly_sprite_to_affect"] = B.belly_sprite_to_affect
// Visuals (Belly Fullscreens Preview and Coloring)
belly_data["belly_fullscreen_color"] = B.belly_fullscreen_color
// Visuals (Vore FX)
belly_data["disable_hud"] = B.disable_hud
// Interactions
belly_data["escapable"] = B.escapable
belly_data["escapechance"] = B.escapechance
belly_data["escapetime"] = B.escapetime
belly_data["transferchance"] = B.transferchance
belly_data["transferlocation"] = B.transferlocation
belly_data["transferchance_secondary"] = B.transferchance_secondary
belly_data["transferlocation_secondary"] = B.transferlocation_secondary
belly_data["absorbchance"] = B.absorbchance
belly_data["digestchance"] = B.digestchance
// Interactions (Auto-Transfer)
belly_data["autotransferchance"] = B.autotransferchance
belly_data["autotransferwait"] = B.autotransferwait
belly_data["autotransferlocation"] = B.autotransferlocation
belly_data["autotransfer_enabled"] = B.autotransfer_enabled
belly_data["autotransfer_min_amount"] = B.autotransfer_min_amount
belly_data["autotransfer_max_amount"] = B.autotransfer_max_amount
// Liquid Options
belly_data["show_liquids"] = B.show_liquids
belly_data["reagentbellymode"] = B.reagentbellymode
belly_data["reagent_chosen"] = B.reagent_chosen
belly_data["reagent_name"] = B.reagent_name
belly_data["reagent_transfer_verb"] = B.reagent_transfer_verb
belly_data["gen_time_display"] = B.gen_time_display
belly_data["custom_max_volume"] = B.custom_max_volume
belly_data["vorefootsteps_sounds"] = B.vorefootsteps_sounds
var/list/reagent_flags = list()
for(var/flag_name in B.reagent_mode_flag_list)
if(B.reagent_mode_flags & B.reagent_mode_flag_list[flag_name])
reagent_flags.Add(flag_name)
belly_data["reagent_mode_flag_list"] = reagent_flags
data["bellies"] += list(belly_data)
// Liquid Messages
belly_data["liquid_fullness1_messages"] = B.liquid_fullness1_messages
belly_data["liquid_fullness2_messages"] = B.liquid_fullness2_messages
belly_data["liquid_fullness3_messages"] = B.liquid_fullness3_messages
belly_data["liquid_fullness4_messages"] = B.liquid_fullness4_messages
belly_data["liquid_fullness5_messages"] = B.liquid_fullness5_messages
belly_data["fullness1_messages"] = list()
for(var/msg in B.fullness1_messages)
belly_data["fullness1_messages"] += msg
belly_data["fullness2_messages"] = list()
for(var/msg in B.fullness2_messages)
belly_data["fullness2_messages"] += msg
belly_data["fullness3_messages"] = list()
for(var/msg in B.fullness3_messages)
belly_data["fullness3_messages"] += msg
belly_data["fullness4_messages"] = list()
for(var/msg in B.fullness4_messages)
belly_data["fullness4_messages"] += msg
belly_data["fullness5_messages"] = list()
for(var/msg in B.fullness5_messages)
belly_data["fullness5_messages"] += msg
return data

View File

@@ -177,67 +177,6 @@ export const VorePanel = (props, context) => {
tabs[1] = <VoreUserPreferences />;
const generateBellyString = () => {
const {
// Controls
belly_name,
mode,
item_mode,
addons,
// Descriptions
verb,
release_verb,
desc,
absorbed_desc,
} = data.selected;
let result = '=== ' + belly_name + ' ===\n\n';
result += '== Controls ==\n\n';
result += 'Mode:\n' + mode + '\n\n';
result += 'Addons:\n' + addons + '\n\n';
result += 'Item Mode:\n' + item_mode + '\n\n';
result += '== Descriptions ==\n\n';
result += 'Verb:\n' + verb + '\n\n';
result += 'Release Verb:\n' + release_verb + '\n\n';
result += 'Description:\n"' + desc + '"\n\n';
result += 'Absorbed Description:\n"' + absorbed_desc + '"\n\n';
return result;
};
const downloadPrefs = () => {
const { belly_name } = data.selected;
const extension = '.txt';
let now = new Date();
let hours = String(now.getHours());
if (hours.length < 2) {
hours = '0' + hours;
}
let minutes = String(now.getMinutes());
if (minutes.length < 2) {
minutes = '0' + minutes;
}
let dayofmonth = String(now.getDate());
if (dayofmonth.length < 2) {
dayofmonth = '0' + dayofmonth;
}
let month = String(now.getMonth() + 1); // 0-11
if (month.length < 2) {
month = '0' + month;
}
let year = String(now.getFullYear());
let datesegment = ' ' + year + '-' + month + '-' + dayofmonth + ' (' + hours + ' ' + minutes + ')';
let filename = belly_name + datesegment + extension;
let blob = new Blob([generateBellyString()], { type: 'text/html;charset=utf8;' });
window.navigator.msSaveOrOpenBlob(blob, filename);
};
return (
<Window width={890} height={660} theme="abstract" resizable>
<Window.Content scrollable>
@@ -248,16 +187,18 @@ export const VorePanel = (props, context) => {
<Flex.Item>
<Button content="Save Prefs" icon="save" onClick={() => act('saveprefs')} />
</Flex.Item>
{/* CHOMPEdit - "Belly HTML Export Earlyport" */}
<Flex.Item>
<Button
content="Save Prefs & Export Selected Belly"
content="Save Prefs & Open Export Panel"
icon="download"
onClick={() => {
act('saveprefs');
downloadPrefs();
act('exportpanel');
}}
/>
</Flex.Item>
{/* CHOMPEdit End */}
</Flex>
</NoticeBox>
)) ||
@@ -335,6 +276,12 @@ const VoreBellySelectionAndCustomization = (props, context) => {
New
<Icon name="plus" ml={0.5} />
</Tabs.Tab>
{/* CHOMPEdit - "Belly HTML Export Earlyport" */}
<Tabs.Tab onClick={() => act('exportpanel')}>
Export
<Icon name="file-export" ml={0.5} />
</Tabs.Tab>
{/* CHOMPEdit End */}
<Divider />
{our_bellies.map((belly) => (
<Tabs.Tab

View File

@@ -0,0 +1,850 @@
import { useBackend } from '../backend';
import { Window } from '../layouts';
import { Button, Section } from '../components';
import { BooleanLike } from 'common/react';
const ModeSpan = {
'Hold': '<span class="badge text-bg-secondary">Hold</span>',
'Digest': '<span class="badge text-bg-danger">Digest</span>',
'Absorb': '<span class="badge text-bg-light">Absorb</span>',
'Drain': '<span class="badge text-bg-warning">Drain</span>',
'Selective': '<span class="badge text-bg-warning">Selective</span>',
'Unabsorb': '<span class="badge text-bg-light">Unabsorb</span>',
'Heal': '<span class="badge text-bg-success">Heal</span>',
'Shrink': '<span class="badge text-bg-info">Shrink</span>',
'Grow': '<span class="badge text-bg-info">Grow</span>',
'Size Steal': '<span class="badge text-bg-info">Size Steal</span>',
'Encase In Egg': '<span class="badge text-bg-primary">Encase In Egg</span>',
};
const ItemModeSpan = {
'Hold': '<span class="badge text-bg-secondary">Item: Hold</span>',
'Digest (Food Only)': '<span class="badge text-bg-danger">Item: Digest (Food Only)</span>',
'Digest': '<span class="badge text-bg-danger">Item: Digest</span>',
'Digest (Dispersed Damage)': '<span class="badge text-bg-danger">Item: Digest (Dispersed Damage)</span>',
};
const AddonIcon = {
'Numbing': '',
'Stripping': '',
'Leave Remains': '',
'Muffles': 'bi-volume-mute',
'Affect Worn Items': '',
'Jams Sensors': 'bi-wifi-off',
'Complete Absorb': '',
};
const ReagentAddonIcon = {
'Produce Liquids': '',
'Digestion Liquids': '',
'Absorption Liquids': '',
'Draining Liquids': '',
};
const GetAddons = (addons: string[]) => {
let result: string[] = [];
addons?.forEach((addon) => {
result.push('<span class="badge text-bg-secondary"><i class="' + AddonIcon[addon] + '"></i>' + addon + '</span>');
});
if (result.length === 0) {
result.push('No Addons Set');
}
return result;
};
const GetLiquidAddons = (addons: string[]) => {
let result: string[] = [];
addons?.forEach((addon) => {
result.push(
'<span class="badge text-bg-secondary"><i class="' + ReagentAddonIcon[addon] + '"></i>' + addon + '</span>'
);
});
if (result.length === 0) {
result.push('No Addons Set');
}
return result;
};
type Data = {
db_version: string;
db_repo: string;
mob_name: string;
bellies: Belly[];
};
type Belly = {
// General Information
name: string;
desc: string;
absorbed_desc: string;
vore_verb: string;
release_verb: string;
// Controls
mode: string;
addons: string[];
item_mode: string;
// Options
digest_brute: number;
digest_burn: number;
digest_oxy: number;
can_taste: BooleanLike;
contaminates: BooleanLike;
contamination_flavor: string;
contamination_color: string;
nutrition_percent: number;
bulge_size: number;
display_absorbed_examine: BooleanLike;
save_digest_mode: BooleanLike;
emote_active: BooleanLike;
emote_time: number;
shrink_grow_size: number;
vorespawn_blacklist: BooleanLike;
egg_type: string;
selective_preference: string;
// Messages
struggle_messages_outside: string[];
struggle_messages_inside: string[];
absorbed_struggle_messages_outside: string[];
absorbed_struggle_messages_inside: string[];
digest_messages_owner: string[];
digest_messages_prey: string[];
absorb_messages_owner: string[];
absorb_messages_prey: string[];
unabsorb_messages_owner: string[];
unabsorb_messages_prey: string[];
examine_messages: string[];
examine_messages_absorbed: string[];
// emote_list: any[];
emotes_digest;
emotes_hold;
emotes_holdabsorbed;
emotes_absorb;
emotes_heal;
emotes_drain;
emotes_steal;
emotes_egg;
emotes_shrink;
emotes_grow;
emotes_unabsorb;
// Sounds
is_wet: BooleanLike;
wet_loop: BooleanLike;
fancy_vore: BooleanLike;
vore_sound: string;
release_sound: string;
// Visuals
affects_vore_sprites: BooleanLike;
count_absorbed_prey_for_sprite: BooleanLike;
resist_triggers_animation: BooleanLike;
size_factor_for_sprite: number;
belly_sprite_to_affect: string;
// Visuals (Belly Fullscreens Preview and Coloring)
belly_fullscreen_color: string;
// Visuals (Vore FX)
disable_hud: BooleanLike;
// Interactions
escapable: BooleanLike;
escapechance: number;
escapetime: number;
transferchance: number;
transferlocation: string;
transferchance_secondary: number;
transferlocation_secondary: string;
absorbchance: number;
digestchance: number;
// Interactions (Auto-Transfer)
autotransferchance: number;
autotransferwait: number;
autotransferlocation: string;
autotransfer_enabled: BooleanLike;
autotransfer_min_amount: number;
autotransfer_max_amount: number;
// Liquid Options
show_liquids: BooleanLike;
reagentbellymode: BooleanLike;
reagent_chosen: string;
reagent_name: string;
reagent_transfer_verb: string;
gen_time_display: string;
custom_max_volume: number;
vorefootsteps_sounds: BooleanLike;
reagent_mode_flag_list: string[];
// Liquid Messages
liquid_fullness1_messages: BooleanLike;
liquid_fullness2_messages: BooleanLike;
liquid_fullness3_messages: BooleanLike;
liquid_fullness4_messages: BooleanLike;
liquid_fullness5_messages: BooleanLike;
fullness1_messages: string[];
fullness2_messages: string[];
fullness3_messages: string[];
fullness4_messages: string[];
fullness5_messages: string[];
};
// prettier-ignore
const generateBellyString = (belly: Belly, index: number) => {
const {
// General Information
name,
desc,
absorbed_desc,
vore_verb,
release_verb,
// Controls
mode,
addons,
item_mode,
// Options
digest_brute,
digest_burn,
digest_oxy,
can_taste,
contaminates,
contamination_flavor,
contamination_color,
nutrition_percent,
bulge_size,
display_absorbed_examine,
save_digest_mode,
emote_active,
emote_time,
shrink_grow_size,
vorespawn_blacklist,
egg_type,
selective_preference,
// Messages
struggle_messages_outside,
struggle_messages_inside,
absorbed_struggle_messages_outside,
absorbed_struggle_messages_inside,
digest_messages_owner,
digest_messages_prey,
absorb_messages_owner,
absorb_messages_prey,
unabsorb_messages_owner,
unabsorb_messages_prey,
examine_messages,
examine_messages_absorbed,
// emote_list,
emotes_digest,
emotes_hold,
emotes_holdabsorbed,
emotes_absorb,
emotes_heal,
emotes_drain,
emotes_steal,
emotes_egg,
emotes_shrink,
emotes_grow,
emotes_unabsorb,
// Sounds
is_wet,
wet_loop,
fancy_vore,
vore_sound,
release_sound,
// Visuals
affects_vore_sprites,
count_absorbed_prey_for_sprite,
resist_triggers_animation,
size_factor_for_sprite,
belly_sprite_to_affect,
// Visuals (Belly Fullscreens Preview and Coloring)
belly_fullscreen_color,
// Visuals (Vore FX)
disable_hud,
// Interactions
escapable,
escapechance,
escapetime,
transferchance,
transferlocation,
transferchance_secondary,
transferlocation_secondary,
absorbchance,
digestchance,
// Interactions (Auto-Transfer)
autotransferchance,
autotransferwait,
autotransferlocation,
autotransfer_enabled,
autotransfer_min_amount,
autotransfer_max_amount,
// Liquid Options
show_liquids,
reagentbellymode,
reagent_chosen,
reagent_name,
reagent_transfer_verb,
gen_time_display,
custom_max_volume,
vorefootsteps_sounds,
reagent_mode_flag_list,
// Liquid Messages
liquid_fullness1_messages,
liquid_fullness2_messages,
liquid_fullness3_messages,
liquid_fullness4_messages,
liquid_fullness5_messages,
fullness1_messages,
fullness2_messages,
fullness3_messages,
fullness4_messages,
fullness5_messages,
} = belly;
let result = '';
result += '<div class="accordion-item"><h2 class="accordion-header" id="heading' + index + '">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse' + index + '" aria-expanded="false" aria-controls="collapse' + index + '">';
result +=
name +
' - (<span style="color: red;">' +
digest_brute +
'</span >/<span style="color: orange;">' +
digest_burn +
'</span>/<span style="color: blue;">' +
digest_oxy +
'</span>) - ' +
ModeSpan[mode] +
' - ' +
ItemModeSpan[item_mode];
result += '</button></h2>';
result += '<div id="collapse' + index + '" class="accordion-collapse collapse" aria-labelledby="heading' + index + '" data-bs-parent="#accordionBellies">';
result += '<div class="accordion-body">';
result += 'Addons:<br>' + GetAddons(addons) + '<br><br>';
result += '<b>== Descriptions ==</b><br>';
result += 'Vore Verb:<br>' + vore_verb + '<br><br>';
result += 'Release Verb:<br>' + release_verb + '<br><br>';
result += 'Description:<br>"' + desc + '"<br><br>';
result += 'Absorbed Description:<br>"' + absorbed_desc + '"<br><br>';
result += '<hr>';
result += '<b>== Messages ==</b><br>';
result += '<div role="messagesTabpanel">'; // Start Div messagesTabpanel
result += '<div class="row"><div class="col-4">';
result += '<div class="list-group" id="messagesList" role="messagesTablist">';
result += '<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#struggleMessagesOutside' + index + '" role="tab">Struggle Messages (Outside)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesInside' + index + '" role="tab">Struggle Messages (Inside)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleOutside' + index + '" role="tab">Absorbed Struggle Messages (Outside)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleInside' + index + '" role="tab">Absorbed Struggle Messages (Inside)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesOwner' + index + '" role="tab">Digest Messages (Owner)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesPrey' + index + '" role="tab">Digest Messages (Prey)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesOwner' + index + '" role="tab">Absorb Messages (Owner)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesPrey' + index + '" role="tab">Absorb Messages (Prey)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesOwner' + index + '" role="tab">Unabsorb Messages (Owner)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesPrey' + index + '" role="tab">Unabsorb Messages (Prey)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessages' + index + '" role="tab">Examine Messages</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessagesAbsorbed' + index + '" role="tab">Examine Messages (Absorbed)</a>';
result += '</div></div>';
result += '<div class="col-8">';
result += '<div class="tab-content">';
result += '<div class="tab-pane fade show active" id="struggleMessagesOutside' + index + '" role="messagesTabpanel">';
struggle_messages_outside?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="struggleMessagesInside' + index + '" role="messagesTabpanel">';
struggle_messages_inside?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="absorbedStruggleOutside' + index + '" role="messagesTabpanel">';
absorbed_struggle_messages_outside?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="absorbedStruggleInside' + index + '" role="messagesTabpanel">';
absorbed_struggle_messages_inside?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="digestMessagesOwner' + index + '" role="messagesTabpanel">';
digest_messages_owner?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="digestMessagesPrey' + index + '" role="messagesTabpanel">';
digest_messages_prey?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="absorbMessagesOwner' + index + '" role="messagesTabpanel">';
absorb_messages_owner?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="absorbMessagesPrey' + index + '" role="messagesTabpanel">';
absorb_messages_prey?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="unabsorbMessagesOwner' + index + '" role="messagesTabpanel">';
unabsorb_messages_owner?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="unabsorbMessagesPrey' + index + '" role="messagesTabpanel">';
unabsorb_messages_prey?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessages' + index + '" role="messagesTabpanel">';
examine_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessagesAbsorbed' + index + '" role="messagesTabpanel">';
examine_messages_absorbed?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '</div>';
result += '</div></div>';
result += '</div>'; // End Div messagesTabpanel
result += '<details><summary>= Idle Messages =</summary><p>';
result += '<details><summary>Idle Messages (Hold):</summary><p>';
emotes_hold?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Hold Absorbed):</summary><p>';
emotes_holdabsorbed?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Digest):</summary><p>';
emotes_digest?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Absorb):</summary><p>';
emotes_absorb?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Unabsorb):</summary><p>';
emotes_unabsorb?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Drain):</summary><p>';
emotes_drain?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Heal):</summary><p>';
emotes_heal?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Size Steal):</summary><p>';
emotes_steal?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Shrink):</summary><p>';
emotes_shrink?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Grow):</summary><p>';
emotes_grow?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '<details><summary>Idle Messages (Encase In Egg):</summary><p>';
emotes_egg?.forEach((msg) => {
result += msg + '<br>';
});
result += '</details></p><br>';
result += '</details></p><br>';
result += '<hr>';
result += '<div class="accordion" id="settingsAccordion' + index + '">';
// OPTIONS
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingOne">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseOne" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseOne">';
result += '<b>== Options ==</b><br>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseOne" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingOne">';
result += '<div class="accordion-body">';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Can Taste: ' + (can_taste ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Contaminates: ' + (contaminates ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Contamination Flavor: ' + contamination_flavor + '</li>';
result += '<li class="list-group-item">Contamination Color: ' + contamination_color + '</li>';
result += '<li class="list-group-item">Nutritional Gain: ' + nutrition_percent + '%</li>';
result += '<li class="list-group-item">Required Examine Size: ' + bulge_size * 100 + '%</li>';
result += '<li class="list-group-item">Display Absorbed Examines: ' + (display_absorbed_examine ? '<span style="color: green;">True' : '<span style="color: red;">False') + '</li>';
result += '<li class="list-group-item">Save Digest Mode: ' + (save_digest_mode ? '<span style="color: green;">True' : '<span style="color: red;">False') + '</li>';
result += '<li class="list-group-item">Idle Emotes: ' + (emote_active ? '<span style="color: green;">Active' : '<span style="color: red;">Inactive') + '</li>';
result += '<li class="list-group-item">Idle Emote Delay: ' + emote_time + ' seconds</li>';
result += '<li class="list-group-item">Shrink/Grow Size: ' + shrink_grow_size * 100 + '%</li>';
result += '<li class="list-group-item">Vore Spawn Blacklist: ' + (vorespawn_blacklist ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Egg Type: ' + egg_type + '</li>';
result += '<li class="list-group-item">Selective Mode Preference: ' + selective_preference + '</li>';
result += '</ul>';
result += '</div></div></div>';
// END OPTIONS
// SOUNDS
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingTwo">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseTwo" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseTwo">';
result += '<b>== Sounds ==</b><br>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseTwo" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingTwo">';
result += '<div class="accordion-body">';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Fleshy Belly: ' + (is_wet ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Internal Loop: ' + (wet_loop ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Use Fancy Sounds: ' + (fancy_vore ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Vore Sound: ' + vore_sound + '</li>';
result += '<li class="list-group-item">Release Sound: ' + release_sound + '</li>';
result += '</ul>';
result += '</div></div></div>';
// END SOUNDS
// VISUALS
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingVisuals">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseVisuals" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseVisuals">';
result += '<b>== Visuals ==</b><br>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseVisuals" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingVisuals>';
result += '<div class="accordion-body">';
result += '<b>Vore Sprites</b>';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Affect Vore Sprites: ' + (affects_vore_sprites ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Count Absorbed prey for vore sprites: ' + (count_absorbed_prey_for_sprite ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Animation when prey resist: ' + (resist_triggers_animation ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '<li class="list-group-item">Vore Sprite Size Factor: ' + size_factor_for_sprite + '</li>';
result += '<li class="list-group-item">Belly Sprite to affect: ' + belly_sprite_to_affect + '</li>';
result += '</ul>';
result += '<b>Belly Fullscreens Preview and Coloring</b>';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Color: <span style="color: ' + belly_fullscreen_color + ';">' + belly_fullscreen_color + '</span>';
result += '</ul>';
result += '<b>Vore FX</b>';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Disable Prey HUD: ' + (disable_hud ? '<span style="color: green;">Yes' : '<span style="color: red;">No') + '</li>';
result += '</ul>';
result += '</div></div></div>';
// END VISUALS
// INTERACTIONS
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingThree">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseThree" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseThree">';
result += '<b>== Interactions ==</b>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseThree" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingThree">';
result += '<div class="accordion-body">';
result += '<b>Belly Interactions (' +
(escapable ? '<span style="color: green;">Enabled' : '<span style="color: red;">Disabled') +
'</span>)</b>';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Escape Chance: ' + escapechance + '%</li>';
result += '<li class="list-group-item">Escape Time: ' + escapetime / 10 + 's</li>';
result += '<li class="list-group-item">Transfer Chance: ' + transferchance + '%</li>';
result += '<li class="list-group-item">Transfer Location: ' + transferlocation + '</li>';
result += '<li class="list-group-item">Secondary Transfer Chance: ' + transferchance_secondary + '%</li>';
result += '<li class="list-group-item">Secondary Transfer Location: ' + transferlocation_secondary + '</li>';
result += '<li class="list-group-item">Absorb Chance: ' + absorbchance + '%</li>';
result += '<li class="list-group-item">Digest Chance: ' + digestchance + '%</li>';
result += '</ul>';
result += '<hr>';
result += '<b>Auto-Transfer Options (' +
(autotransfer_enabled ? '<span style="color: green;">Enabled' : '<span style="color: red;">Disabled') +
'</span>)</b>';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Auto-Transfer Chance: ' + autotransferchance + '%</li>';
result += '<li class="list-group-item">Auto-Transfer Time: ' + autotransferwait / 10 + 's</li>';
result += '<li class="list-group-item">Auto-Transfer Location: ' + autotransferlocation + '</li>';
result += '<li class="list-group-item">Auto-Transfer Min Amount: ' + autotransfer_min_amount + '</li>';
result += '<li class="list-group-item">Auto-Transfer Max Amount: ' + autotransfer_max_amount + '</li>';
result += '</ul>';
result += '</div></div></div>';
// END INTERACTIONS
// LIQUID OPTIONS
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingFour">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseFour" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseFour">';
result += '<b>== Liquid Options (' +
(show_liquids ? '<span style="color: green;">Liquids On' : '<span style="color: red;">Liquids Off') +
'</span>) ==</b>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseFour" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingFour">';
result += '<div class="accordion-body">';
result += '<ul class="list-group">';
result += '<li class="list-group-item">Generate Liquids: ' + (reagentbellymode ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</li>';
result += '<li class="list-group-item">Liquid Type: ' + reagent_chosen + '</li>';
result += '<li class="list-group-item">Liquid Name: ' + reagent_name + '</li>';
result += '<li class="list-group-item">Transfer Verb: ' + reagent_transfer_verb + '</li>';
result += '<li class="list-group-item">Generation Time: ' + gen_time_display + '</li>';
result += '<li class="list-group-item">Liquid Capacity: ' + custom_max_volume + '</li>';
result += '<li class="list-group-item">Slosh Sounds: ' + (vorefootsteps_sounds ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</li>';
result += '<li class="list-group-item">Liquid Addons: ' + GetLiquidAddons(reagent_mode_flag_list) + '</li>';
result += '</ul>';
result += '</div></div></div>';
// END LIQUID OPTIONS
// LIQUID MESSAGES
result += '<div class="accordion-item">';
result += '<h2 class="accordion-header" id="settingsAccordion' + index + '-headingFive">';
result += '<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion' + index + '-collapseFive" aria-expanded="true" aria-controls="settingsAccordion' + index + '-collapseFive">';
result += '<b>== Liquid Messages (' +
(show_liquids ? '<span style="color: green;">Messages On' : '<span style="color: red;">Messages Off') +
'</span>) ==</b>';
result += '</button></h2>';
result += '<div id="settingsAccordion' + index + '-collapseFive" class="accordion-collapse collapse" aria-labelledby="settingsAccordion' + index + '-headingFive">';
result += '<div class="accordion-body">';
result += '<div role="liquidMessagesTabpanel">'; // Start Div liquidMessagesTabpanel
result += '<div class="row"><div class="col-4">';
result += '<div class="list-group" id="liquidMessagesList" role="messagesTablist">';
result += '<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#examineMessage0_20' + index + '" role="tab">Examine Message (0 to 20%) (' + (liquid_fullness1_messages ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</span>)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage20_40' + index + '" role="tab">Examine Message (20 to 40%) (' + (liquid_fullness2_messages ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</span>)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage40_60' + index + '" role="tab">Examine Message (40 to 60%) (' + (liquid_fullness3_messages ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</span>)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage60_80' + index + '" role="tab">Examine Message (60 to 80%) (' + (liquid_fullness4_messages ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</span>)</a>';
result += '<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage80_100' + index + '" role="tab">Examine Message (80 to 100%) (' + (liquid_fullness5_messages ? '<span style="color: green;">On' : '<span style="color: red;">Off') + '</span>)</a>';
result += '</div></div>';
result += '<div class="col-8">';
result += '<div class="tab-content">';
result += '<div class="tab-pane fade show active" id="examineMessage0_20' + index + '" role="liquidMessagesTabpanel">';
fullness1_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessage20_40' + index + '" role="liquidMessagesTabpanel">';
fullness2_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessage40_60' + index + '" role="liquidMessagesTabpanel">';
fullness3_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessage60_80' + index + '" role="liquidMessagesTabpanel">';
fullness4_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '<div class="tab-pane fade" id="examineMessage80_100' + index + '" role="liquidMessagesTabpanel">';
fullness5_messages?.forEach((msg) => {
result += msg + '<br>';
});
result += '</div>';
result += '</div>';
result += '</div></div>';
result += '</div>'; // End Div liquidMessagesTabpanel
result += '</div></div></div>';
// END LIQUID MESSAGES
result += '</div></div></div>';
return result;
};
const getCurrentTimestamp = (): string => {
let now = new Date();
let hours = String(now.getHours());
if (hours.length < 2) {
hours = '0' + hours;
}
let minutes = String(now.getMinutes());
if (minutes.length < 2) {
minutes = '0' + minutes;
}
let dayofmonth = String(now.getDate());
if (dayofmonth.length < 2) {
dayofmonth = '0' + dayofmonth;
}
let month = String(now.getMonth() + 1); // 0-11
if (month.length < 2) {
month = '0' + month;
}
let year = String(now.getFullYear());
return ' ' + year + '-' + month + '-' + dayofmonth + ' (' + hours + ' ' + minutes + ')';
};
const downloadPrefs = (context, extension: string) => {
const { act, data } = useBackend<Data>(context);
const { db_version, db_repo, mob_name, bellies } = data;
let datesegment = getCurrentTimestamp();
let filename = mob_name + datesegment + extension;
let blob;
if (extension === '.html') {
let style = '<style>' + '</style>';
blob = new Blob(
[
'<!DOCTYPE html><html lang="en"><head>' +
'<meta charset="utf-8">' +
'<meta name="viewport" content="width=device-width, initial-scale=1">' +
'<title>' +
bellies.length +
' Exported Bellies (DB_VER: ' +
db_repo +
'-' +
db_version +
')</title>' +
'<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">' +
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">' +
style +
'</head><body class="py-4"><main><div class="container"><h2>Bellies of ' +
mob_name +
'</h2><p class="lead">Generated on: ' +
datesegment +
'</p><div class="accordion" id="accordionBellies">',
],
{
type: 'text/html;charset=utf8',
}
);
bellies.forEach((belly, i) => {
blob = new Blob([blob, generateBellyString(belly, i)], { type: 'text/html;charset=utf8' });
});
blob = new Blob(
[
blob,
'</div>',
'<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>',
'</div></main></body></html>',
],
{ type: 'text/html;charset=utf8' }
);
}
(window.navigator as any).msSaveOrOpenBlob(blob, filename);
};
export const VorePanelExport = () => {
return (
<Window width={790} height={560} theme="abstract" resizeable>
<Window.Content>
<VorePanelExportContent />
</Window.Content>
</Window>
);
};
const VorePanelExportContent = (props, context) => {
const { act, data } = useBackend<Data>(context);
const { bellies } = data;
return (
<Section title="Vore Export Panel">
<Section title="Export">
<Button fluid icon="file-alt" onClick={() => downloadPrefs(context, '.html')}>
Export (HTML)
</Button>
</Section>
</Section>
);
};

File diff suppressed because one or more lines are too long

View File

@@ -4539,5 +4539,6 @@
#include "modular_chomp\code\modules\power\cells\power_cells.dm"
#include "modular_chomp\code\modules\research\designs\power_cells.dm"
#include "modular_chomp\code\modules\research\designs\weapons.dm"
#include "modular_chomp\code\modules\vore\eating\exportpanel_ch.dm"
#include "modular_chomp\code\modules\vore\resizing\resize.dm"
// END_INCLUDE