Skip to content

Commit

Permalink
Tag float view, WIP hex view
Browse files Browse the repository at this point in the history
  • Loading branch information
cohaereo committed Jun 22, 2024
1 parent 0538e86 commit 1dc5ab5
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 139 deletions.
27 changes: 27 additions & 0 deletions src/gui/hextag.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
use destiny_pkg::TagHash;
use eframe::egui::Ui;

#[derive(Copy, Clone)]
enum DataViewMode {
Float,
Raw,
U32,
}

pub struct TagHexView {
data: Vec<u8>,
mode: DataViewMode,
}

impl TagHexView {
pub fn new(data: Vec<u8>) -> Self {
Self {
data,
mode: DataViewMode::Raw,
}
}

pub fn show(&mut self, ui: &mut Ui) -> Option<TagHash> {
None
}
}
1 change: 1 addition & 0 deletions src/gui/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod audio;
mod common;
mod dxgi;
mod hextag;
mod named_tags;
mod packages;
mod raw_strings;
Expand Down
Loading

0 comments on commit 1dc5ab5

Please sign in to comment.