Skip to content

Commit

Permalink
use dg prelude + rm comment about GString borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jan 21, 2024
1 parent bf5fbc4 commit cbd146f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions pets-lib/src/dialogue/dbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
//! how much I care anymore.
//!
use dialogical::{DialogueChoice, DialogueEnding, Interaction, Label, Metaline, PageMeta, Speaker};

use dialogical::prelude::*;
use godot::engine::{
HBoxContainer, IPanelContainer, InputEvent, PanelContainer, RichTextLabel, Tween,
};
Expand Down
2 changes: 0 additions & 2 deletions pets-lib/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ use godot::prelude::*;

/// takes a bbcode string and prepends or removes it from the label text
pub fn bbcode_toggle(mut node: Gd<RichTextLabel>, bbcode: &str, active: bool) {
// TODO maybe there's a way to slice directly from the GString?
// waiting for a reply to my "noob question" thread on discord...
let old_text = node.get_text().to_string();
let new_text = prefix_mod(&old_text, bbcode, active);

Expand Down

0 comments on commit cbd146f

Please sign in to comment.